Move optional dependencies from Imports to Suggests in PEcAn.data.land (#3599)#3840
Conversation
mdietze
left a comment
There was a problem hiding this comment.
Rethink where these checks are performed, fix PEcAn internal installs, and determine whether we can get by with just one package for the Dirlichet distribution (if we can, MCMCpack is the more common or the two)
68cf89f to
5c194e0
Compare
|
Sir, I have also send you my GSOC proposal for the 3rd project "Increasing PEcAn Modularity" project . when you get a chance, could you take a look and share any feedback..? i know you're busy. Thanks! |
infotroph
left a comment
There was a problem hiding this comment.
I'm excited to move all of these to Suggests! Thanks for identifying the packages to reclassify.
Before merging:
- I see a few more places to adjust placement within the function
- the proposed change in
extract_soil_gssurgoconflicts with another open PR and should likely be deferred - Please update the dependency list to reflect these package changes by running
./scripts/generate_dependencies.Rand committing the changes it creates (which should all be indocker/depends/pecan_package_dependencies.csv)
5c194e0 to
3fe8164
Compare
|
You now have a merge conflict in pecan_package_dependencies.csv, and from the (incorrect) structure of the changes in that file it looks like you did not use |
…anProject#3599) Moved doSNOW, dplR, httr, MCMCpack, mvtnorm, neonUtilities, neonstore, PEcAn.benchmark, PEcAn.visualization, rjags, sirt, and sp from Imports to Suggests. Added requireNamespace() guards in all affected R files. Updated NEWS.md, CHANGELOG.md, and CITATION.cff.
65e70a4 to
b2e6732
Compare
|
Done |
550a17b
Summary
Closes #3599
Moves 12 packages that are only needed for specific, optional functionality
from
ImportstoSuggestsinPEcAn.data.land.Packages moved from Imports to Suggests
doSNOWsoil_params_ensemble.RdplRmatchInventoryRings.R,Read_Tuscon.RhttrgSSURGO_Query.RMCMCpacksoil_params_ensemble.Rmvtnormplot2AGB.Rrmvnorm()callneonUtilitiesdownload_NEON_soilmoisture.Rneonstoreextract_NEON_veg.RPEcAn.benchmarkload_veg.Rload_data()callPEcAn.visualizationInventoryGrowthFusionDiagnostics.RciEnvelope()rjagsInventoryGrowthFusion.Rsirtextract_soil_nc.Rspextract_SM_CDS.R,IC_BADM_Utilities.RsfChanges made
DESCRIPTION: moved all 12 packages fromImportstoSuggestsrequireNamespace()guards with informativelogger.severe()messages in all affected R filesNEWS.md,CHANGELOG.md, andCITATION.cffTesting
Select-StringImports