Skip to content

Commit b3e6adc

Browse files
progress pkg removed from suggests
1 parent 5ee343e commit b3e6adc

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

DESCRIPTION

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ Suggests:
2727
knitr,
2828
rmarkdown,
2929
testthat (>= 3.0.0),
30-
progress
3130
VignetteBuilder: knitr
3231
BugReports: https://github.com/peterson-tim-j/AWAPer/issues
3332
URL: https://github.com/peterson-tim-j/AWAPer

R/extractCatchmentData.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@
6868
#' @param ET.Mortons.est character string for the type of Morton's ET estimate. For \code{ET.MortonCRAE}, the options are \code{potential ET},\code{wet areal ET} or \code{actual areal ET}.
6969
#' For \code{ET.MortonCRWE}, the options are \code{potential ET} or \code{shallow lake ET}. The default is \code{potential ET}.
7070
#' @param ET.Turc.humid logical variable for the Turc function using the humid adjustment.See \code{\link[Evapotranspiration]{ET.Turc}}. For now this is fixed at \code{F}.
71-
#' @param ET.timestep character string for the evapotranpiration time step. Options are \code{daily}, \code{monthly}, \code{annual} but the options are dependent upon the chosen \code{ET.function}. The default is \code{"monthly"}.
72-
#' @param ET.missing_method character string for interpolation method for missing variables required for ET calculation. The options are \code{"monthly average"}, \code{"seasonal average"}, \code{"DoY average"} and \code{"neighbouring average"}. Default is \code{"DoY average"} but when the extraction duration is less than two years, the default is \code{"neighbouring average}. See \code{\link[Evapotranspiration]{ReadInputs}}
71+
#' @param ET.timestep character string for the evapotranpiration time step. Options are \code{daily}, \code{monthly}, \code{annual} but the options are dependent upon the chosen \code{ET.function}. The default is \code{'monthly'}.
72+
#' @param ET.missing_method character string for interpolation method for missing variables required for ET calculation. The options are \code{'monthly average'}, \code{'seasonal average'}, \code{'DoY average'} and \code{'neighbouring average'}. Default is \code{'DoY average'} but when the extraction duration is less than two years, the default is \code{'neighbouring average'}. See \code{\link[Evapotranspiration]{ReadInputs}}
7373
#' @param ET.abnormal_method character string for interpolation method for abnormal variables required for ET calculation (e.g. Tmin > Tmax). Options and defaults are as for \code{ET.missing_method}. See \code{\link[Evapotranspiration]{ReadInputs}}
7474
#' @param ET.constants list of constants from Evapotranspiration package required for ET calculations. To get the data use the command \code{data(constants)}. Default is \code{list()}.
7575
#'
7676
#' @return
77-
#' When \code{locations} are polygons and \code{spatial.function.name} is not \code{NA} or \code{""}, then the returned variable is a list variable containing two data.frames. The first is the areal aggreggated climate
77+
#' When \code{locations} are polygons and \code{spatial.function.name} is not \code{NA} or \code{""}, then the returned variable is a list variable containing two data.frames. The first is the areal aggregated climate
7878
#' metrics named \code{catchmentTemporal.} with a suffix as defined by \code{temporal.function.name}). The second is the measure of spatial variability
7979
#' named \code{catchmentSpatial.} with a suffix as defined by \code{spatial.function.name}).
8080
#'
81-
#' When \code{locations} are polygons and \code{spatial.function.name} does equal \code{NA} or \code{""}, then the returned variable is a \code{sp::SpatialPixelsDataFrame} where the first colum is the location/catchmet IDs
81+
#' When \code{locations} are polygons and \code{spatial.function.name} does equal \code{NA} or \code{""}, then the returned variable is a \code{sp::SpatialPixelsDataFrame} where the first column is the location/catchment IDs
8282
#' and the latter columns are the results for each variable at each time point as defined by \code{temporal.timestep}.
8383
#'
8484
#' When \code{locations} are points, the returned variable is a data.frame containing daily climate data at each point.
@@ -166,7 +166,7 @@ extractCatchmentData <- function(
166166

167167
# Check ncdfFilename file exist
168168
if (!file.exists(ncdfFilename))
169-
stop(paste('The following ncdfFilename input data file could not be found:',ncdfFilename))
169+
stop(paste("The following ncdfFilename input data file could not be found:",ncdfFilename))
170170

171171
# Open NetCDF grids
172172
awap <- ncdf4::nc_open(ncdfFilename)

build_commands.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ knitr::knit("vignettes/C_Catchment_avg_ET_rainfall.Rnw", output = "vignettes/C_C
1616
knitr::knit("vignettes/D_Catchment_avg_ET_types.Rnw", output = "vignettes/D_Catchment_avg_ET_types.Rmd")
1717
browseVignettes("AWAPer")
1818

19+
# devtools checks added
20+
devtools::check('C:/Users/tpet0008/Documents/AWAPer',args=c("--no-examples"))
21+
1922
# Build the pavkage for CRAN
2023
devtools::build(".")

man/extractCatchmentData.Rd

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

0 commit comments

Comments
 (0)