Skip to content

Pass on filters argument to pkgAvail() in makeRepo() #156

@hturner

Description

@hturner

pkgAvail() has a filters argument that is passed on to utils::available.packages() L182. However makeRepo() calls pkgAvail() without this argument L62.

This means that, unless the available_packages_filters option is set, makeRepo() uses the default filters: c("R_version", "OS_type", "subarch", "duplicates"). It would be helpful if makeRepo() could take and pass on the filters argument.

This issue came up when making a repo with binaries for different platforms: carpentriesoffline/offlinedatasci#135 - the "subarch" filter excluded packages compiled for different platforms. It is possible to work round this by setting the available_packages_filters option, but enabling the argument in makeRepo would be more direct and consistent with pkgAvail().

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions