Skip to content

Commit

Permalink
Dependencies named following devtools checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterson-tim-j committed Feb 15, 2025
1 parent 4b8bb68 commit 5c64d0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/extractCatchmentData.R
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ extractCatchmentData <- function(
catchments = sf::st_zm(catchments, drop=T)

# Convert to sp spatial object
catchments = as(catchments,'Spatial')
catchments = methods::as(catchments,'Spatial')

} else if (!methods::is(catchments,"SpatialPolygonsDataFrame") && !methods::is(catchments,"SpatialPointsDataFrame")) {
stop('The input for "catchments" must be a file name to a shape file or a SpatialPolygonsDataFrame or a SpatialPointsDataFrame object.')
Expand Down
4 changes: 2 additions & 2 deletions R/makeNetCDF_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ makeNetCDF_file <- function(
updateTo = as.Date(Sys.Date()-1,"%Y-%m-%d")
} else if (is.character(updateTo)) {
updateTo = as.Date(updateTo,'%Y-%m-%d');
} else if (class(updateTo)=="Date") {
} else if (methods::is(updateTo,"Date")) {
updateTo = min(c(as.Date(Sys.Date()-1,"%Y-%m-%d"),updateTo));
}
if (updateFrom >= updateTo)
Expand Down Expand Up @@ -366,7 +366,7 @@ makeNetCDF_file <- function(
} else {
updateTo = as.Date(Sys.Date()-1,"%Y-%m-%d")
}
} else if (class(updateTo)=="Date") {
} else if ( methods::is(updateTo,"Date") ) {
updateTo = min(c(as.Date(Sys.Date()-1,"%Y-%m-%d"),updateTo));
}
}
Expand Down

0 comments on commit 5c64d0c

Please sign in to comment.