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
Simply checking that a package name is present in local library is not always enough to load the namespace.
Updating only "missing" packages can possibly result in complicated situations where all packages are present but cannot be loaded due to specific minimum versions set.
Most recently I saw this pop up on a users computer where raster namespace gets loaded via clhs, with raster now requiring terra >1.6-41... and the user had 1.6-17. Sometimes the dependencies are several steps removed and hard for users to figure out.
reportSetup() probably should default to updates of all required packages (change update=FALSE to update=TRUE)
Code used in mu-comparison report could be refactored and added to soilReports
to provide a standard routine for checking user has required packages (and giving informative errors of which namespaces don't load)
The text was updated successfully, but these errors were encountered:
I just got burned by this today in the stat class--forgot to set update=FALSE for my demonstration.
We might want to develop a way to "pin" specific package versions within the manifests of report as part of the second TODO here. As we probably realized way back when, the default of upgrade=TRUE may be too sensitive to inconsequential version bumps... so the default could be "update if less than minimum required". Will think on this a bit to see if there is a more elegant way than entirely reinventing the current handling of this in DESCRIPTION files...
Simply checking that a package name is present in local library is not always enough to load the namespace.
Updating only "missing" packages can possibly result in complicated situations where all packages are present but cannot be loaded due to specific minimum versions set.
Most recently I saw this pop up on a users computer where raster namespace gets loaded via clhs, with raster now requiring terra >1.6-41... and the user had 1.6-17. Sometimes the dependencies are several steps removed and hard for users to figure out.
reportSetup()
probably should default to updates of all required packages (change update=FALSE to update=TRUE)The text was updated successfully, but these errors were encountered: