Skip to content

Commit ea21fca

Browse files
committed
cran
1 parent b137413 commit ea21fca

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ README.md
1313
^_pkgdown\.yml$
1414
^docs$
1515
^pkgdown$
16+
^CRAN-SUBMISSION$

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: googleway
22
Type: Package
33
Title: Accesses Google Maps APIs to Retrieve Data and Plot Maps
44
Version: 2.7.7
5-
Date: 2023-04-11
5+
Date: 2023-04-15
66
Authors@R: c(
77
person("David", "Cooley", ,"dcooley@symbolix.com.au", role = c("aut", "cre")),
88
person("Paulo", "Barcelos", role = "ctb", comment = "Author of c++ decode_pl"),

R/parameter_checks.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ validateAvoid <- function(avoid){
261261
validateBounds <- function(bounds){
262262
if(is.null(bounds)) return(NULL)
263263

264-
if(!is(bounds, "list") | !all(sapply(bounds, inherits, "numeric")) | length(bounds) != 2)
264+
if(!inherits(bounds, "list") | !all(sapply(bounds, inherits, "numeric")) | length(bounds) != 2)
265265
stop("bounds must be a list of length 2, each item being a vector of lat/lon coordinate pairs")
266266

267267
if(!all(sapply(bounds, length) == 2))
@@ -381,7 +381,7 @@ validateLocationBias <- function( point, circle, rectangle ) {
381381
validateLanguage <- function(language){
382382
if(is.null(language)) return(NULL)
383383

384-
if(!is(language, "character") | length(language) > 1){
384+
if(!inherits(language, "character") | length(language) > 1){
385385
stop("language must be a single string")
386386
}
387387
return(tolower(language))
@@ -614,7 +614,7 @@ validateRankBy <- function(rankby, location, search_string){
614614
validateRegion <- function(region){
615615
if(is.null(region)) return(NULL)
616616

617-
if(!is(region, "character") | length(region) > 1)
617+
if(!inherits(region, "character") | length(region) > 1)
618618
stop("region must be a two-character string")
619619

620620
return(tolower(region))
@@ -623,7 +623,7 @@ validateRegion <- function(region){
623623
validateResultType <- function(result_type){
624624
if(is.null(result_type)) return(NULL)
625625

626-
if(!is(result_type, "character") )
626+
if(!inherits(result_type, "character") )
627627
stop("result_type must be a vector of strings")
628628

629629
if(length(result_type) > 1){
@@ -687,7 +687,7 @@ validateWaypoints <- function(waypoints, optimise_waypoints, mode){
687687
if(!mode %in% c("driving", "walking","bicycling"))
688688
stop("waypoints are only valid for driving, walking or bicycling modes")
689689

690-
if(!is(waypoints, "list"))
690+
if(!inherits(waypoints, "list"))
691691
stop("waypoints must be a list")
692692

693693
if(!all(names(waypoints) %in% c("stop", "via")))

cran-comments.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

man/google_map_view.Rd

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)