Skip to content

Commit

Permalink
style: minor style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
elipousson committed Jan 4, 2024
1 parent 138f20c commit c422ca5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion R/bing_maps_api_key.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ bing_maps_api_key <- function(key,
get_bing_maps_api_key <- function(key = NULL,
default = "BING_MAPS_API_KEY",
call = caller_env()) {

get_r_environ_token(
token = key,
default = default,
Expand Down
2 changes: 1 addition & 1 deletion R/map_image.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
packageStartupMessage(
"Use of the Bing Maps APIs is governed by the Microsoft Bing Maps Platform APIs Terms Of Use.
\nMore information: <https://www.microsoft.com/en-us/maps/product/>"
)
)
}

#' @noRd
Expand Down
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ nudge_location <- function(location, nudge = NULL) {
#' Get closest cardinal direction based on angle orientation
#' @noRd
closest_cardinal_dir <- function(orientation = NULL) {
cardinal_dirs_between <- c(0, 45, 135, 225, 315)
cardinal_dirs <- c(0, 90, 180, 270, 360)
cardinal_dirs_between <- c(0, 45, 135, 225, 315)
cardinal_dirs <- c(0, 90, 180, 270, 360)

cardinal_dirs[
findInterval(
Expand Down

0 comments on commit c422ca5

Please sign in to comment.