installB: install packages from local drive

View source: R/installB.R

installBR Documentation

install packages from local drive

Description

Remove function objects from workspace and try to unload reverse dependencies. Then call devtools::install.

Usage

installB(
  package = NA,
  path = "C:/Dropbox/Rpack",
  force = FALSE,
  load = TRUE,
  unloadrevdep = TRUE,
  quiet = FALSE,
  ...
)

Arguments

package

Package name. DEFAULT: NA (interactive selection)

path

Path containing package folder. DEFAULT: "C:/Dropbox/Rpack"

force

Logical. Even install if the version is not outdated? DEFAULT: FALSE

load

Logical. Also call loadAndMessage? DEFAULT: TRUE

unloadrevdep

Try to unload some common reverse dependencies? DEFAULT: TRUE

quiet

Suppress messages? DEFAULT: FALSE

...

passed to devtools::install

Author(s)

Berry Boessenkool, berry-b@gmx.de, 2014 - 2023

See Also

packageDescription, read.dcf

Examples

## Not run: 
# Here's what you could write into your Rprofile.site:

# Loading Packages
try(br::loadPackages())

options(help_type="html")

# Set CRAN repository
local({r <- getOption("repos")
r["CRAN"] <- "https://cran.rstudio.com" # 0-cloud
options(repos=r)})

# create character string  base::desktop
desktop <- "C:/Users/berry/Desktop" # linux "/home/berry/Desktop"

# Speed up package installation
# https://blog.jumpingrivers.com/posts/2017/speed_package_installation/
options(Ncpus = parallel::detectCores()-1 )

# if install.packages and download.files give HTTP status 403 forbidden:
options(url.method="libcurl")


## End(Not run) # end dontrun


brry/installB documentation built on Jan. 3, 2024, 6:49 p.m.