Because ProjectTemplate is still beta software, there are a number of backwards incompatible changes introduced with each iteration of the package. The information below should help you upgrade an existing project to work with the newest version of ProjectTemplate.
ProjectTemplate::migrate.project()
. The functions load.project()
and reload.project()
will issue a warning if this is required.libraries
configuration settings in config/global.dcf
.as_factors
configuration setting in config/global.dcf
. Set it to “on”.data_tables
configuration setting in config/global.dcf
. Set it to “off”.run.tests()
to calls to test.project()
. run.tests()
has now been removed permanently from ProjectTemplate.lib/utilities.R
to lib/helpers.R
. This is not required in any way, but it will make your project seem like a v0.3-3 project.global.yaml
needs to be renamed global.dfc
..url
or .sql
files you’ve written in YAML need to be converted to DCF syntax.clean.variable.name
and cache.name
functions from helpers.R
.create.project('tmp')
mv tmp/cache/ .
mv tmp/config/ .
mv tmp/diagnostics/1.R diagnostics
mv tmp/munge .
mv tmp/src .
rm -rf tmp
lib/preprocess_data.R
into a file in munge
, preferably the 1-A.R
script.config/global.dcf
. You’ll want to specify the R packages you’ll load and change the load_libraries
setting to on
.lib
directory that are no longer being used:
rm lib/boot.R
rm lib/load_data.R
rm lib/load_libraries.R
rm lib/preprocess_data.R
rm lib/run_tests.R
rm lib/helpers.R