Package 'safeinstall'

Title: Run some basic security checks before installing R packages from online repositories
Description: Run some basic security checks before installing R packages from online repositories.
Authors: Francisco Rodriguez-Sanchez [aut, cre]
Maintainer: Francisco Rodriguez-Sanchez <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2024-11-19 05:56:26 UTC
Source: https://github.com/Pakillo/safeinstall

Help Index


Check a package repository for potential security issues

Description

Check a package repository for potential security issues

Usage

check_package(repo = NULL, verbose = TRUE)

Arguments

repo

Link to an online git repository (e.g. "https://github.com/Pakillo/safeinstall.git")

verbose

Logical. Show verbose output?

Value

TRUE if the package passes the security checks, otherwise FALSE (and some extra information about potential issues if verbose = TRUE).

Examples

## Not run: 
library(safeinstall)
check_package("https://github.com/Pakillo/safeinstall.git")
check_package("https://github.com/ropenscilabs/testevil.git")

## End(Not run)

Safe installation of R packages from GitHub

Description

Safe installation of R packages from GitHub

Usage

safe_install_github(user.repo = NULL, ..., verbose = TRUE)

Arguments

user.repo

Repository address in the format username/repo.

...

Further options passed to remotes::install_github().

verbose

Logical. Show verbose output?

Value

If no unsafe code is detected, the package is installed. Otherwise, an error message calling to inspect the repository for potential problems.

Examples

## Not run: 
library(safeinstall)
safe_install_github("Pakillo/safeinstall")
safe_install_github("ropenscilabs/testevil")

## End(Not run)