expect_secure {oysteR}R Documentation

Vulnerability Detection via Testthat

Description

A testthat version for detecting vulnerabilities. This function is used within the testthat framework. As testthat strips out the repositories from options, we have to set the value locally in the function, i.e. the value you have in getOption("repos") is not used.

Usage

expect_secure(pkg, repo = "https://cran.rstudio.com", verbose = FALSE)

Arguments

pkg

The pkg to check

repo

The CRAN repository, used to get version numbers

verbose

Default TRUE.

Details

An important proviso is that we are only testing packages for specific versions. By default, this will be the latest version on CRAN. This may differ for users or if you are using a CRAN snapshot. For the latter, simply change the repo parameter.

Examples

## Not run: 
 # Typically used inside testthat
 oysteR::expect_secure("oysteR")

## End(Not run)

[Package oysteR version 0.1.1 Index]