From 2a73902ead5dd5e55c11874d9f0ffef4561c875f Mon Sep 17 00:00:00 2001 From: Mark Edmondson Date: Mon, 28 Feb 2022 10:32:00 +0100 Subject: [PATCH] clean up targets example --- CRAN-RELEASE | 4 ++-- R/build_targets.R | 4 ++++ man/cr_build_targets.Rd | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CRAN-RELEASE b/CRAN-RELEASE index da876899..cdd82c57 100644 --- a/CRAN-RELEASE +++ b/CRAN-RELEASE @@ -1,2 +1,2 @@ -This package was submitted to CRAN on 2022-02-07. -Once it is accepted, delete this file and tag the release (commit 8ff0fd8f). +This package was submitted to CRAN on 2022-02-28. +Once it is accepted, delete this file and tag the release (commit fb34761c). diff --git a/R/build_targets.R b/R/build_targets.R index 8af656a1..7ab3625e 100644 --- a/R/build_targets.R +++ b/R/build_targets.R @@ -72,6 +72,10 @@ #' par_build <- cr_build_targets(bs, path = NULL) #' par_build #' +#' # clean up example +#' unlink("mtcars.csv") +#' unlink("_targets.R") +#' #' \dontrun{ #' # run it immediately in cloud #' cr_build_targets(bs, execute="now") diff --git a/man/cr_build_targets.Rd b/man/cr_build_targets.Rd index ef3c3f04..2af235e2 100644 --- a/man/cr_build_targets.Rd +++ b/man/cr_build_targets.Rd @@ -156,6 +156,10 @@ bs <- cr_buildstep_targets_multi() par_build <- cr_build_targets(bs, path = NULL) par_build +# clean up example +unlink("mtcars.csv") +unlink("_targets.R") + \dontrun{ # run it immediately in cloud cr_build_targets(bs, execute="now")