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)
  }

}
Bisaloo/groundhogR documentation built on July 4, 2025, 6:26 p.m.