Skip to content

Commit

Permalink
Merge pull request #185 from pepaaran/master
Browse files Browse the repository at this point in the history
Last changes for CRAN submission
  • Loading branch information
khufkens authored Oct 30, 2023
2 parents aae2737 + 9c1234b commit 33d26a8
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 40 deletions.
4 changes: 2 additions & 2 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 4.4
Date: 2023-10-12 11:08:56 UTC
SHA: 8c228455a5dd87a4cb749a9bf502d5b5238cfd0a
Date: 2023-10-30 09:56:10 UTC
SHA: 50aa48c8f7cb621dcd99b77ccd6ea6d8e8ca13ba
12 changes: 12 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ Authors@R: c(
email = "[email protected]",
comment = c(ORCID = "0009-0006-7176-2311"),
role = c("aut")),
person(
family = "Marqués",
given = "Laura",
email = "[email protected]",
comment = c(ORCID = "0000-0002-3593-5557"),
role = c("ctb")),
person(
family = "Weng",
given = "Ensheng",
email = "[email protected]",
comment = c(ORCID = "0000-0002-1858-4847"),
role = c("ctb")),
person(given = "Geocomputation and Earth Observation, University of Bern",
role = c("cph", "fnd"))
)
Expand Down
2 changes: 0 additions & 2 deletions R/calib_sofun.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#' @import GenSA BayesianTools
#'
#' @examples
#' \donttest{
#' # Fix model parameters that won't be calibrated
#' params_fix <- list(
#' kphio_par_a = 0,
Expand Down Expand Up @@ -84,7 +83,6 @@
#' par_fixed = params_fix,
#' targets = c("gpp")
#' )
#' }

calib_sofun <- function(
drivers,
Expand Down
2 changes: 0 additions & 2 deletions R/cost_likelihood_pmodel.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
#' @export
#'
#' @examples
#' \donttest{
#' # Compute the likelihood for a set of
#' # model parameter values involved in the
#' # temperature dependence of kphio
Expand All @@ -71,7 +70,6 @@
#' kc_jmax = 0.41
#' )
#' )
#' }

cost_likelihood_pmodel <- function(
par, # model parameters & error terms for each target
Expand Down
2 changes: 0 additions & 2 deletions R/cost_rmse_pmodel.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
#' @export
#'
#' @examples
#' \donttest{
#' # Compute RMSE for a set
#' # of model parameter values
#' # and example data
Expand All @@ -66,7 +65,6 @@
#' kc_jmax = 0.41
#' )
#' )
#' }

cost_rmse_pmodel <- function(
par, # ordered vector of model parameters
Expand Down
2 changes: 0 additions & 2 deletions R/init_dates_dataframe.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@
#' @export
#'
#' @examples
#' \donttest{
#' ddf <- init_dates_dataframe( 2000, 2003, startmoy=1, startdoy=1,
#' freq="days", endmoy=12, enddom=31, noleap=FALSE )
#' }

init_dates_dataframe <- function(
yrstart,
Expand Down
2 changes: 0 additions & 2 deletions R/run_pmodel_f_bysite.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@
#' @useDynLib rsofun
#'
#' @examples
#' \donttest{
#' # Define model parameter values from previous work
#' params_modl <- list(
#' kphio = 0.04998, # setup ORG in Stocker et al. 2020 GMD
Expand All @@ -153,7 +152,6 @@
#' forcing = p_model_drivers$forcing[[1]],
#' params_modl = params_modl
#' )
#' }

run_pmodel_f_bysite <- function(
sitename,
Expand Down
3 changes: 2 additions & 1 deletion R/runread_biomee_f.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
#' # Example BiomeE model run
#'
#' mod_output <- runread_biomee_f(
#' drivers = biomee_gs_leuning_drivers)
#' drivers = biomee_gs_leuning_drivers
#' )
#' }

runread_biomee_f <- function(
Expand Down
2 changes: 0 additions & 2 deletions R/runread_pmodel_f.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
#' exactly replicated.
#'
#' @examples
#' \donttest{
#' # Define model parameter values from previous work
#' params_modl <- list(
#' kphio = 0.04998, # setup ORG in Stocker et al. 2020 GMD
Expand All @@ -95,7 +94,6 @@
#' output <- rsofun::runread_pmodel_f(
#' drivers = rsofun::p_model_drivers,
#' par = params_modl)
#' }

runread_pmodel_f <- function(
drivers,
Expand Down
16 changes: 4 additions & 12 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
Dear CRAN team,

This is the re-submission of the {rsofun} package. We have addressed the following
concerns voiced by Benjamin Altman:

- Corrected the software naming in package title and description.
- Added a \value field to all the exported functions, explaining the object returned
by each function.
- Removed \dontrun statements in the documentation examples, now \donttest
is used for examples that have long runtimes.
- Included license and copyright statements in a COPYING file. The original authors
of the software borrowed for this package were contacted and permissions to use
parts of their code were discussed, as well as the copyright and license that
accompany their code. The direct authors of this package are listed in the
DESCRIPTION file.
concerns flagged by the automatic checks:

- Wrapped examples running the BiomeE model in \donttest because they took 16 sec to run in the Windows pre-test.
- Reviewed DESCRIPTION file for misspelled words. The NOTE in the pre-tests is a false positive.

---

Expand Down
2 changes: 0 additions & 2 deletions man/calib_sofun.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/cost_likelihood_pmodel.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/cost_rmse_pmodel.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/init_dates_dataframe.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/run_pmodel_f_bysite.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/runread_biomee_f.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/runread_pmodel_f.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 33d26a8

Please sign in to comment.