R/version.R

Defines functions version_rm nes_versions

Documented in nes_versions

#' nes_versions
#'
#' @export
#' @importFrom tools file_path_sans_ext
#'
#' @examples
#' nes_versions()
nes_versions <- function(){
  res <- tools::file_path_sans_ext(get_version_list())

  gsub("^.*?_", "", res)
}

version_rm <- function(version_id){
  unlink(
    get_version_list(
      include.dirs = TRUE, full.names = TRUE)[
        which(version_id == nes_versions())])
}

Try the nesRdata package in your browser

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

nesRdata documentation built on May 1, 2020, 1:07 a.m.