Skip to contents

This function uses `risk.assessr::assess_pkg` assessment function with only the package name and version

Usage

assess_pkg_r_package(package_name, version = NA)

Arguments

package_name

A character string specifying the name of the package to assess.

version

A character string specifying the version of the package to assess. Default is `NA`, which assesses the latest version.

Value

The function returns a list of assessment results generated by the `risk.assessr::assess_pkg` function. If the package cannot be downloaded or installed, an error message is returned.

Details

This function follows these steps:

  1. Downloads the specified R package

  2. Installs the downloaded package in a temporary location.

  3. Runs the `risk.assessr::assess_pkg` function to assess the package for risks and issues.

  4. Returns the results of the assessment.

Examples

if (FALSE) { # \dontrun{
# Example usage of assess_pkg_r_package
results <- assess_pkg_r_package("here", version = "1.0.1")
print(results)
} # }