R/init_repo.R

Defines functions init_repo

Documented in init_repo

#' init_repo
#'
#' @description Initialize repository
#' @param repo_path the path of the repository. If none given, the current directory used as paht.
#' @details
#' Wrapper function for initializing a repository.
#' @export
init_repo <- function(repo_path = getwd()) {
    repo <- git2r::init(normalizePath(repo_path))
  return(repo)
}
AngelosPsy/pssr documentation built on June 27, 2020, 8:06 p.m.