diff --git a/R/force_param_values.R b/R/force_param_values.R index 2078c440..7a0f6e96 100644 --- a/R/force_param_values.R +++ b/R/force_param_values.R @@ -26,11 +26,11 @@ #' @return A logical status TRUE if successful, FALSE otherwise #' #' @examples -#' \donttest{ +#' \dontrun{ #' example_txt_dir <- get_examples_path(file_type = "txt") #' force_param_values(example_txt_dir, #' setNames(object = c(220, 330), c("stlevamf", "stamflax")), -#' javastics = tempdir() +#' javastics = "/path/to/javastics" #' ) #' } #' diff --git a/R/gen_usms_xml2txt.R b/R/gen_usms_xml2txt.R index ef390e73..2ef08cab 100644 --- a/R/gen_usms_xml2txt.R +++ b/R/gen_usms_xml2txt.R @@ -45,7 +45,7 @@ #' have been successfully copied in usms directories #' #' @examples -#' \donttest{ +#' \dontrun{ #' javastics <- "/path/to/JavaSTICS/folder" #' workspace <- "/path/to/workspace" #' @@ -56,8 +56,6 @@ #' usm <- c("usm1", "usm2") #' gen_usms_xml2txt(javastics, workspace, usm) #' -#' # For one usm -#' gen_usms_xml2txt(javastics, workspace, dir_per_usm_flag = FALSE, "usm1") #' } #' #' @export diff --git a/R/get_obs.R b/R/get_obs.R index 65982101..7ff76c26 100644 --- a/R/get_obs.R +++ b/R/get_obs.R @@ -67,7 +67,7 @@ #' # Get observations only for banana: #' Meas_banana <- get_obs(path, "banana") #' -#' \donttest{ +#' \dontrun{ #' # Get observations with real plant names when plant #' # folder is not in the workspace: #' get_obs(path, "banana", javastics = "/path/to/JavaSTICS/folder") diff --git a/R/get_param_info.R b/R/get_param_info.R index cd59ecdc..0fa70d7c 100644 --- a/R/get_param_info.R +++ b/R/get_param_info.R @@ -35,7 +35,7 @@ #' @export #' #' @examples -#' \donttest{ +#' \dontrun{ #' get_param_info(param = "albedo") #' get_param_info(param = "albedo", file = "/path/to/file.xml") diff --git a/R/get_usms_files.R b/R/get_usms_files.R index 5e0f0db6..ecb69148 100644 --- a/R/get_usms_files.R +++ b/R/get_usms_files.R @@ -27,7 +27,7 @@ #' and `get_usms_list()` to get the list of usms. #' #' @examples -#' \donttest{ +#' \dontrun{ #' #' get_usms_files( #' workspace = "/path/to/workspace", diff --git a/R/upgrade_workspace_xml.R b/R/upgrade_workspace_xml.R index e109f0a5..bb87c9ba 100644 --- a/R/upgrade_workspace_xml.R +++ b/R/upgrade_workspace_xml.R @@ -25,7 +25,7 @@ #' - Weather data and observations files are fully copied to `out_dir` #' #' @examples -#' \donttest{ +#' \dontrun{ #' upgrade_workspace_xml( #' workspace = "/path/to/JavaSTICS/workspace", #' javastics = "/path/to/JavaSTICS/folder", diff --git a/man/force_param_values.Rd b/man/force_param_values.Rd index 2cb31543..e336362c 100644 --- a/man/force_param_values.Rd +++ b/man/force_param_values.Rd @@ -46,11 +46,11 @@ will be used). If values==NA or values==NULL, not any parameter will be forced (all default values used). } \examples{ -\donttest{ +\dontrun{ example_txt_dir <- get_examples_path(file_type = "txt") force_param_values(example_txt_dir, setNames(object = c(220, 330), c("stlevamf", "stamflax")), - javastics = tempdir() + javastics = "/path/to/javastics" ) } diff --git a/man/gen_usms_xml2txt.Rd b/man/gen_usms_xml2txt.Rd index ebc64da4..e6644c1d 100644 --- a/man/gen_usms_xml2txt.Rd +++ b/man/gen_usms_xml2txt.Rd @@ -77,7 +77,7 @@ For one usm, files will be generated either in the workspace directory or in a subdirectory. } \examples{ -\donttest{ +\dontrun{ javastics <- "/path/to/JavaSTICS/folder" workspace <- "/path/to/workspace" @@ -88,8 +88,6 @@ gen_usms_xml2txt(javastics, workspace) usm <- c("usm1", "usm2") gen_usms_xml2txt(javastics, workspace, usm) -# For one usm -gen_usms_xml2txt(javastics, workspace, dir_per_usm_flag = FALSE, "usm1") } } diff --git a/man/get_obs.Rd b/man/get_obs.Rd index be277e45..28207274 100644 --- a/man/get_obs.Rd +++ b/man/get_obs.Rd @@ -99,7 +99,7 @@ Meas <- get_obs(path) # Get observations only for banana: Meas_banana <- get_obs(path, "banana") -\donttest{ +\dontrun{ # Get observations with real plant names when plant # folder is not in the workspace: get_obs(path, "banana", javastics = "/path/to/JavaSTICS/folder") diff --git a/man/get_param_info.Rd b/man/get_param_info.Rd index 128fc154..09497ce0 100644 --- a/man/get_param_info.Rd +++ b/man/get_param_info.Rd @@ -55,7 +55,7 @@ parameter and formalism may be both set or only one of them, but none of them can be if keyword argument is used. } \examples{ -\donttest{ +\dontrun{ get_param_info(param = "albedo") get_param_info(param = "albedo", file = "/path/to/file.xml") diff --git a/man/get_usms_files.Rd b/man/get_usms_files.Rd index 8f0d5a13..c1e65d46 100644 --- a/man/get_usms_files.Rd +++ b/man/get_usms_files.Rd @@ -51,7 +51,7 @@ The possible values of file types are: "fplt", "finit", "fclim1", "fclim2", "fstation" and "ftec" } \examples{ -\donttest{ +\dontrun{ get_usms_files( workspace = "/path/to/workspace", diff --git a/man/upgrade_workspace_xml.Rd b/man/upgrade_workspace_xml.Rd index 7bbbea35..deb14847 100644 --- a/man/upgrade_workspace_xml.Rd +++ b/man/upgrade_workspace_xml.Rd @@ -53,7 +53,7 @@ to the target model version. } } \examples{ -\donttest{ +\dontrun{ upgrade_workspace_xml( workspace = "/path/to/JavaSTICS/workspace", javastics = "/path/to/JavaSTICS/folder",