Package 'just.install'

Title: Very Simple Function to Install Packages without Attaching
Description: Install packages without attaching them. If a package it is already installed, it will be skipped.
Authors: Carlos Yanez Santibanez [aut, cre]
Maintainer: Carlos Yanez Santibanez <[email protected]>
License: GPL (>= 3)
Version: 1.0.2.0002.4
Built: 2025-02-14 02:55:02 UTC
Source: https://github.com/carlosyanez/just.install

Help Index


simply install packages

Description

Simple utility to install packages from a number of sources. It only install if it not present already. It does not attach any packages, existing or to be installed.

Usage

justinstall(to_install, cran_repos = getOption("repos"), dependencies = TRUE)

Arguments

to_install

tibble or data.frame with packages to install (see vignette for details)

cran_repos

list of CRAN repositories (defauls to getOptions("repos"))

dependencies

whether to install dependencies, as per remotes::install_ specs (defaults to TRUE)

Value

no output

Examples

## Not run: 
to_install <- tibble::tibble(package=c("tidyverse","ochRe","customthemes"),
                             source=c("CRAN","Github","r-universe"),
                             url=c("","ropenscilabs/ochRe","https://carlosyanez.r-universe.dev"))

just.install::justinstall(to_install)

## End(Not run)