find_install_dir: Find a directory to install software in

View source: R/find_install_dir.R

find_install_dirR Documentation

Find a directory to install software in

Description

Find a directory that you have write permissions in to so that you can install software there. Tests several options and returns the first viable one.

Usage

find_install_dir(
  dest_dir_opts = c(tools::R_user_dir("MAGMA.Celltyping", which = "cache"),
    system.file("tools", package = "MAGMA.Celltyping"), "/usr/local/bin",
    Sys.getenv("HOME"), getwd(), tempdir()),
  verbose = FALSE
)

Arguments

dest_dir_opts

Potential installation directory options.

verbose

Print messages.

Value

Path to viable installation directory.


NathanSkene/MAGMA_Celltyping documentation built on Aug. 21, 2023, 8:55 a.m.