diff --git a/DESCRIPTION b/DESCRIPTION index 71099a6..b8509a1 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -11,7 +11,7 @@ Description: In computationally demanding data analysis pipelines, That way, when the user rolls back the code to a previous branch or commit, 'gittargets' can recover the data contemporaneous with that commit so that all targets remain up to date. -Version: 0.0.2 +Version: 0.0.3 License: MIT + file LICENSE URL: https://docs.ropensci.org/gittargets/, https://github.com/ropensci/gittargets BugReports: https://github.com/ropensci/gittargets/issues diff --git a/NEWS.md b/NEWS.md index 6a93027..5f05817 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +# gittargets 0.0.3 + +* Fix an example for CRAN. + # gittargets 0.0.2 * Hard reset after checkout in `tar_git_checkout()` in order to recover potentially deleted files (#11). diff --git a/R/tar_git_ok.R b/R/tar_git_ok.R index ee8945e..83168fc 100644 --- a/R/tar_git_ok.R +++ b/R/tar_git_ok.R @@ -12,7 +12,9 @@ #' correctly. #' @param verbose Whether to print messages to the console. #' @examples +#' if (Sys.getenv("TAR_EXAMPLES") == "true") { #' tar_git_ok() +#' } tar_git_ok <- function(verbose = TRUE) { binary <- tar_git_binary() if_any( diff --git a/man/tar_git_ok.Rd b/man/tar_git_ok.Rd index 53903d1..72e7a5c 100644 --- a/man/tar_git_ok.Rd +++ b/man/tar_git_ok.Rd @@ -25,8 +25,10 @@ You may find it convenient to run \code{gert::git_config_global()} with \code{name} equal to \code{user.name} and \code{user.email}. } \examples{ +if (Sys.getenv("TAR_EXAMPLES") == "true") { tar_git_ok() } +} \seealso{ Other git: \code{\link{tar_git_checkout}()},