-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor migrate.project() and fix version tests (#162)
* add relevant files from cacherawdata branch to seperate out migrate.project() and test-version files * Refactored migrate.project() to allow more precise checks, actions and messages during migration * Added user messages instead of warnings to migrate.project. Also updated existing test to expect message rather than warning * Added some migration specific tests. Needed a refactor of default.config function and also moved the tidy_up() function into the run-all script so it can be accessed in different tests * remove rogue project template created in test folder * moved tidy_up() into each of the testing contexts due to failures on the travis checks on github * fixed a missing man file for default.config
- Loading branch information
1 parent
73652e6
commit 62937da
Showing
5 changed files
with
256 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
.default.config.file <- system.file('defaults/config/default.dcf', package = 'ProjectTemplate') | ||
|
||
|
||
#' Default configuration | ||
#' | ||
#' This list stores the configuration used for missing items | ||
#' in the configuration of the current project. | ||
#' | ||
#' @include translate.dcf.R | ||
default.config <- translate.dcf(system.file('defaults/config/default.dcf', package = 'ProjectTemplate')) | ||
default.config <- translate.dcf(.default.config.file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters