create_ppm_blacklist | R Documentation |
Use OSV data accessed via osv_query
to create blacklist (i.e. blocklist)
commands for the Posit Package Manager product.
create_ppm_blacklist(rosv_query, flags = NULL)
rosv_query |
A table of vulnerabilities (created via |
flags |
Global flag to append to commands. |
Although OSV has many databases for open source software, this function is only relevant for CRAN/Bioconductor and PyPI. To ensure the blacklist is applied to the appropriate target, it is encouraged to specify the name of the source used in your configuration as an additional flag parameter (see examples). Only one ecosystem can be used at a time to ensure there is not a mix of packages across ecosystems applied to incompatible sources.
Character vector containing blacklist commands.
# Blacklist all CRAN package versions with a listed vulnerability
cran_vul <- osv_query(ecosystem = 'CRAN', all_affected = FALSE)
cmd_blist <- create_ppm_blacklist(cran_vul, flags = '--source=cran')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.