Skip to content

sysreqs_check_installed() ignores packages #450

@JosiahParry

Description

@JosiahParry

I am trying to use pkgdepends to check which system requirements are not installed for the packages listed in my renv.lock file on ubuntu 24.

It looks like it does not complete checking for all of the packages because they are not installed. Which is somewhat confusing to me—particularly because I want to check the system dependencies so that I can install them before trying to install the packages probably with the results of pak::pkg_sysreqs(deps, sysreqs_platform = "ubuntu-24") for the install scripts.

Is there a way to get pkgdepends to report the sysreq status for all of the packages input? Or is there a better approach to doing this in general

deps <- c("DBI", "KernSmooth", "MASS", "Matrix", "R6", "RColorBrewer",
"Rcpp", "askpass", "backports", "base64enc", "bit", "bit64",
"blob", "broom", "bslib", "cachem", "callr", "cellranger", "class",
"classInt", "cli", "clipr", "commonmark", "conflicted", "crayon",
"crosstalk", "curl", "data.table", "dbplyr", "digest", "dplyr",
"dtplyr", "e1071", "evaluate", "fansi", "farver", "fastmap",
"fontawesome", "forcats", "fs", "gargle", "generics", "ggplot2",
"glue", "googledrive", "googlesheets4", "gtable", "haven", "highr",
"hms", "htmltools", "htmlwidgets", "httpuv", "httr", "ids", "isoband",
"jquerylib", "jsonlite", "knitr", "labeling", "later", "lattice",
"lazyeval", "leaflet", "leaflet.providers", "lifecycle", "lubridate",
"magrittr", "memoise", "mgcv", "mime", "modelr", "nlme", "openssl",
"pillar", "pkgconfig", "png", "processx", "promises", "proxy",
"ps", "purrr", "ragg", "rappdirs", "raster", "readr", "readxl",
"rematch", "rematch2", "renv", "reprex", "rlang", "rmarkdown",
"rstudioapi", "rvest", "s2", "sass", "scales", "selectr", "sf",
"shiny", "sourcetools", "sp", "stringi", "stringr", "sys", "systemfonts",
"terra", "textshaping", "tibble", "tidyr", "tidyselect", "tidyverse",
"timechange", "tinytex", "tzdb", "units", "utf8", "uuid", "vctrs",
"viridisLite", "vroom", "withr", "wk", "xfun", "xml2", "xtable",
"yaml")

pkgdepends::sysreqs_check_installed(deps)
#> system package       installed required by
#> --------------       --        -----------
#> libcurl4-openssl-dev ✔         curl
#> libpng-dev           ✔         png
#> libssl-dev           ✔         curl
#> libx11-dev           ✖         clipr
#> Warning message:
#> In async_parse_installed(library = library, packages = packages) :
#>   Ignored 99 packages that are not installed: DBI, KernSmooth, MASS, Matrix, RColorBrewer, Rcpp,
#> askpass, backports, base64enc, blob, broom, bslib, cachem, cellranger, class, classInt, commonmark,
#> conflicted, …, xtable, and yaml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions