
Assess an R Package riskmetric with package name and version
Source:R/assess_pkg_r_package.R
assess_pkg_r_package.Rd
This function use `risk.assessr::assess_pkg` assessment function with only the package name and version
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.
- repos
A character string specifying the repo directly. Default is NULL, which uses the CRAN mirrors
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:
Downloads the specified R package
Installs the downloaded package in a temporary location.
Runs the `risk.assessr::assess_pkg` function to assess the package for risks and issues.
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)
} # }