Skip to content

Commit

Permalink
Fix lint failures
Browse files Browse the repository at this point in the history
  • Loading branch information
arcresu committed Oct 9, 2024
1 parent b910dda commit 12f10e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
18 changes: 9 additions & 9 deletions R/configure_inset.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@
#' radius = 50,
#' units = "mi")
configure_inset <- function(
centre,
scale = NULL,
translation = NULL,
radius = NULL,
hwidth = NULL,
hheight = NULL,
units = "km",
crs_working = NULL
centre,
scale = NULL,
translation = NULL,
radius = NULL,
hwidth = NULL,
hheight = NULL,
units = "km",
crs_working = NULL
) {
crs_input <- sf::NA_crs_
if (inherits(centre, "sfc")) {
Expand Down Expand Up @@ -173,7 +173,7 @@ check_inset_config <- function(inset) {
if (is.null(inset)) cli::cli_abort("Inset configuration must be provided")

if (!is.null(inset[["radius"]]) && !is.null(inset[["hwidth"]])) {
cli::cli_abort("Only one of inset {.arg radius} or {.arg hwidth} can be specified")
cli::cli_abort("Only one of inset {.arg radius} or {.arg hwidth} can be specified")
}
if (!is.null(inset[["radius"]])) {
if (inset$radius <= 0) {
Expand Down
2 changes: 0 additions & 2 deletions R/inset_shape_rectangle.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ make_frame.inset_shape_rectangle <- function(inset) {
if (is.null(trans)) trans <- c(0, 0)
scale <- inset_scale(inset)
if (is.null(scale)) scale <- 1
width <- inset_width(inset)
height <- inset_width(inset)

viewport <- inset_viewport(inset)
result <- viewport
Expand Down

0 comments on commit 12f10e2

Please sign in to comment.