Skip to content

Commit

Permalink
refactor: minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
elipousson committed Apr 29, 2023
1 parent abe316a commit 47ab9d5
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 41 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Imports:
lifecycle,
purrr,
rlang (>= 1.1.0),
sf,
sf (>= 1.0-11),
tibble,
units,
vctrs
Expand Down
10 changes: 2 additions & 8 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export(st_center)
export(st_circle)
export(st_circumscribed_circle)
export(st_clip)
export(st_concave_hull)
export(st_concave_hull_ext)
export(st_distance_ext)
export(st_donut)
export(st_edge)
Expand Down Expand Up @@ -213,29 +213,22 @@ importFrom(lifecycle,deprecated)
importFrom(lifecycle,signal_stage)
importFrom(purrr,map_dfr)
importFrom(rlang,.data)
importFrom(rlang,.env)
importFrom(rlang,`%||%`)
importFrom(rlang,arg_match)
importFrom(rlang,as_function)
importFrom(rlang,caller_env)
importFrom(rlang,check_installed)
importFrom(rlang,check_required)
importFrom(rlang,current_env)
importFrom(rlang,env_get_list)
importFrom(rlang,exec)
importFrom(rlang,fn_fmls)
importFrom(rlang,global_env)
importFrom(rlang,has_length)
importFrom(rlang,has_name)
importFrom(rlang,is_false)
importFrom(rlang,is_function)
importFrom(rlang,is_interactive)
importFrom(rlang,is_lambda)
importFrom(rlang,is_logical)
importFrom(rlang,is_missing)
importFrom(rlang,is_named)
importFrom(rlang,is_null)
importFrom(rlang,is_true)
importFrom(rlang,list2)
importFrom(rlang,set_names)
importFrom(rlang,try_fetch)
Expand All @@ -251,6 +244,7 @@ importFrom(sf,st_buffer)
importFrom(sf,st_cast)
importFrom(sf,st_centroid)
importFrom(sf,st_combine)
importFrom(sf,st_concave_hull)
importFrom(sf,st_convex_hull)
importFrom(sf,st_coordinates)
importFrom(sf,st_crop)
Expand Down
12 changes: 10 additions & 2 deletions R/import-standalone-obj-type.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
# ---
# repo: r-lib/rlang
# file: standalone-obj-type.R
# last-updated: 2022-10-04
# last-updated: 2023-03-30
# license: https://unlicense.org
# imports: rlang (>= 1.1.0)
# ---
#
# ## Changelog
#
# 2023-03-30:
# - `stop_input_type()` now handles `I()` input literally in `arg`.
#
# 2022-10-04:
# - `obj_type_friendly(value = TRUE)` now shows numeric scalars
# literally.
Expand Down Expand Up @@ -315,10 +318,15 @@ stop_input_type <- function(x,
if (length(what)) {
what <- oxford_comma(what)
}
if (inherits(arg, "AsIs")) {
format_arg <- identity
} else {
format_arg <- cli$format_arg
}

message <- sprintf(
"%s must be %s, not %s.",
cli$format_arg(arg),
format_arg(arg),
what,
obj_type_friendly(x, value = show_value)
)
Expand Down
14 changes: 0 additions & 14 deletions R/sfext-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@
## usethis namespace: start
#'
#' @import rlang
#' @importFrom rlang .data
#' @importFrom rlang .env
#' @importFrom rlang `%||%`
#' @importFrom rlang caller_env
#' @importFrom rlang global_env
#' @importFrom rlang has_length
#' @importFrom rlang is_interactive
#' @importFrom rlang check_installed
#' @importFrom rlang exec
#' @importFrom rlang env_get_list
#' @importFrom rlang is_true
#' @importFrom rlang is_false
#' @importFrom rlang is_null
#' @importFrom rlang is_logical
#' @importFrom cli cli_abort
#' @importFrom cli cli_inform
#' @importFrom cli cli_warn
Expand Down
Empty file removed R/usethis-cli.R
Empty file.
21 changes: 5 additions & 16 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"codeRepository": "https://github.com/elipousson/sfext",
"issueTracker": "https://github.com/elipousson/sfext/issues",
"license": "https://spdx.org/licenses/MIT",
"version": "0.1.0.9000",
"version": "0.1.1",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.2.0 Patched (2022-05-23 r82396)",
"runtimePlatform": "R version 4.2.3 (2023-03-15)",
"author": [
{
"@type": "Person",
Expand Down Expand Up @@ -43,18 +43,6 @@
}
],
"softwareSuggestions": [
{
"@type": "SoftwareApplication",
"identifier": "concaveman",
"name": "concaveman",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=concaveman"
},
{
"@type": "SoftwareApplication",
"identifier": "covr",
Expand Down Expand Up @@ -346,7 +334,7 @@
"@type": "SoftwareApplication",
"identifier": "filenamr",
"name": "filenamr",
"version": ">= 0.1.0.9000",
"version": ">= 0.1.0.9002",
"sameAs": "https://github.com/elipousson/filenamr"
},
"6": {
Expand Down Expand Up @@ -414,6 +402,7 @@
"@type": "SoftwareApplication",
"identifier": "sf",
"name": "sf",
"version": ">= 1.0-11",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
Expand Down Expand Up @@ -460,7 +449,7 @@
},
"SystemRequirements": null
},
"fileSize": "848.361KB",
"fileSize": "851.315KB",
"releaseNotes": "https://github.com/elipousson/sfext/blob/master/NEWS.md",
"readme": "https://github.com/elipousson/sfext/blob/main/README.md",
"contIntegration": "https://app.codecov.io/gh/elipousson/sfext?branch=main",
Expand Down

0 comments on commit 47ab9d5

Please sign in to comment.