R/clone_ocs_repo.R

Defines functions clone_ocs_repo

Documented in clone_ocs_repo

#' Internal Function
#'
#' This is not to be used directly by the users.
#'
#' @export
#' @importFrom usethis create_from_github
#' @keywords internal
#'
clone_ocs_repo <- function(casestudy, outpath=NULL,fork_repo=NA){
  if (is.null(outpath)) {
    outpath = getwd()
  }
    create_from_github(paste0('opencasestudies/',casestudy), destdir = outpath,
                       fork = fork_repo, open = FALSE)
}

Try the OCSdata package in your browser

Any scripts or data that you put into this service are public.

OCSdata documentation built on Aug. 20, 2021, 9:07 a.m.