Closed ray-najjar closed 6 years ago
The import.and.install.libraries(paths)
install calls the function init_reconstruction
that is the actual source of the error message.
But the actual problem is in the path creation (init.paths.and.functions = function(paths)
), and it tried to give two non-created nested subfolders.
outlier_free
was not created at first place and we tried to create recon
et al. one folder back from outlier_free_corrected
which did not exist either.
Created the OUTPUT folder automatically now with
if (dir.exists(paths[['data_out']][['base']]) == FALSE) {
dir.create(paths[['data_out']][['base']], showWarnings = TRUE, recursive = FALSE, mode = "0777")
cat('Creating the directory for DATA OUTPUT\n')
}
And then also the outlier_free
with:
# Create outlier_free
if (dir.exists(paths[['data_out']][['artifacts']]) == FALSE) {
dir.create(paths[['data_out']][['artifacts']], showWarnings = TRUE, recursive = FALSE, mode = "0777")
cat('Creating the directory for DATA OUTLIER_FREE\n')
}
Fix in commit: https://github.com/petteriTeikari/R-PLR/commit/b85f6d1f3d5774884e81e093d1086eed88011025
This comes out after calling
import.and.install.libraries(paths)
[Petteri edit], see @ray-najjar the Markdown Cheatsheet to adding the triple apostrophes with the language pasted