-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass on filters
argument to pkgAvail()
in makeRepo()
#156
Comments
Thank you for this report. I have pushed a change to the Could you please check out dev and let me know if this is what you need? |
Thanks for the quick fix! It is working as I expect. Here's an example run on Windows that demonstrates my original issue before and after:
But for testing you could do something non-OS-specific, e.g.
{tripack} has been on CRAN since 1998, so is a reasonable test candidate, but of course it could disappear from CRAN so best to make any such test not run on CRAN. |
pkgAvail()
has afilters
argument that is passed on toutils::available.packages()
L182. HowevermakeRepo()
callspkgAvail()
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 ifmakeRepo()
could take and pass on thefilters
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 theavailable_packages_filters
option, but enabling the argument inmakeRepo
would be more direct and consistent withpkgAvail()
.The text was updated successfully, but these errors were encountered: