R/get.installed_path.R

Defines functions get.installed_path

# Check if package version is installed for current or past R versions,


get.installed_path <- function(pkg, vrs) {
  
  pkg_search_path <- get.pkg_search_paths(pkg, vrs)

  installed_path <- find.package(pkg, pkg_search_path, quiet = TRUE)

  if (length(installed_path) == 0) {
    return("")
  } else {
    return(pkg_search_path)
  }

}

Try the groundhog package in your browser

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

groundhog documentation built on May 29, 2024, 7:55 a.m.