make update-renv
(only pik-piam packages) or update-renv-all
(all CRAN packages)config/default.cfg
Rscript submit_preprocessing.R
The current process uses the default cache system (cfg$cachetype = "dev
) which uses data from the default cache which might have been generated by an older process.
This only works if the functions used in the input data generation are following the naming conventions for madrat-packages.
If you want to use a separate cache folder starting from scratch for your input data revision, set cfg$cachetype = "rev"
in your config file (usually config/default.cfg).
Note that cfg$revision
may not include characters, e.g. cfg$revision <- "6.607test"
won't work. If you want to test input data generation for some local changes, set cfg$dev
, e.g. cfg$dev <- "my-test"
.
You sometimes need to test inputdata generation with some unmerged changes in one or more R libraries. In order to do so:
lucode2::buildLibrary
succeeds, choose option 4 4: only for packages in development stage
to get a number consisting of four parts like 0.173.0.9001
)renv::install("/p/tmp/username/yourpackagefolder")
renv::snapshot()
Once the process started, check the beginning log file for the installed libraries and make sure that the right version of your R library is being used (i.e. the dev version number you gave it when building the library).
If you need to better understand the difference between two inputdata archives, there are two tools on the cluster to help you understand which files have changed and to identify commits contributing to these changes:
inputdata-comparedata
- Compares the content of two data archives and looks for similarities and differences. Wrapper for madrat::compareData
. Expects paths to two input data archivesinputdata-commithist
- List all git commits between two input data archives for selected input data libraries. Expects paths to two input data archives, the first must be the older one.