You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is an issue with the use of pkgAvail -- it can only handle a single type, or both, and I can't think of an easy way to incorporate an lapply or similar into that function to deal with multiple types.
The text was updated successfully, but these errors were encountered:
One possibility is that pkgAvail() returns a list of matrices if length(type) . 1.
Then it becomes the responsibility of the downstream code to know how to deal with a single matrix (if type is singular) or a list (if type is plural).
You will then have to modify the lapply() loop in updatePackages() to be more like a traditional for loop:
lapply(seq_along(type), function(i){...}
Inside the ... you have to subset into type[i] and availPkgs[[i]].
Managing a miniCRAN repo with multiple package types, I get the following warnings:
I think this is an issue with the use of
pkgAvail
-- it can only handle a single type, orboth
, and I can't think of an easy way to incorporate anlapply
or similar into that function to deal with multiple types.The text was updated successfully, but these errors were encountered: