plesync.blogg.se

Update packages r
Update packages r





I figured this was safest as you may not realise the chain of dependencies implied and end up installing hundreds of packages accidentally. The default is not to install packages but just return the list of dependencies. I doubt it will affect you if you have 4000 packages installed.

update packages r

I think these are harmless as the returned value in that case is NA and we use that to indicate packages we want to install. You get warnings from the sapply() line if a dependency in deps is not actually installed. Which matches with > packageDescription("fields", fields = "Depends")

update packages r

Something like: instPkgPlusDeps instPkgPlusDeps("fields")

update packages r

As Ben indicated in his comment, you need to get the dependencies for fields, then filter out the packages with Priority "Base" or "Recommended", and then pass that list of package to install.packages() to deal with the installation.







Update packages r