diff --git a/DESCRIPTION b/DESCRIPTION index 4052005..c00341c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: rapsimng Type: Package Title: APSIM Next Generation -Version: 0.4.2 +Version: 0.4.3 Authors@R: person("Bangyou", "Zheng", email = "bangyou.zheng@csiro.au", role = c("aut", "cre")) diff --git a/R/report.R b/R/report.R index bf2fac3..47be080 100644 --- a/R/report.R +++ b/R/report.R @@ -7,8 +7,10 @@ #' @export #' #' @examples +#' \dontrun{ #' file <- system.file("extdata/wheat.apsimx", package = "rapsimng") #' list_report(file) +#' } list_report <- function(file) { if (length(file) != 1) { stop("only support single file") @@ -40,8 +42,10 @@ list_report <- function(file) { #' @export #' #' @examples +#' \dontrun{ #' file <- system.file("extdata/wheat.apsimx", package = "rapsimng") #' read_report(file, "HarvestReport") +#' } read_report <- function(file, report) { if (length(file) != 1) { stop("only support single file") diff --git a/man/list_report.Rd b/man/list_report.Rd index 60099cf..1ce896a 100644 --- a/man/list_report.Rd +++ b/man/list_report.Rd @@ -16,6 +16,8 @@ a vector of all reports List all reports in the database } \examples{ +\dontrun{ file <- system.file("extdata/wheat.apsimx", package = "rapsimng") list_report(file) } +} diff --git a/man/read_report.Rd b/man/read_report.Rd index 4f58a33..2501b78 100644 --- a/man/read_report.Rd +++ b/man/read_report.Rd @@ -18,6 +18,8 @@ a data.frame for a report Read apsimx database in db file format } \examples{ +\dontrun{ file <- system.file("extdata/wheat.apsimx", package = "rapsimng") read_report(file, "HarvestReport") } +}