Skip to content

Version Manage Files 1.0#9

Open
AtogmatomaProgramming wants to merge 5 commits into
Eucrow:developfrom
AtogmatomaProgramming:manage_files_directory_functions
Open

Version Manage Files 1.0#9
AtogmatomaProgramming wants to merge 5 commits into
Eucrow:developfrom
AtogmatomaProgramming:manage_files_directory_functions

Conversation

@AtogmatomaProgramming

Copy link
Copy Markdown
Contributor

The next changes where made:

-In the R directory, it was created two news to store, on one side, general functions no related with the errors and, other side, to store related errors one.

-Two new functions were developed: move_file, like its name indicates, change the ubication of a file from one directory to other, and manage_work_folder, to check if a directory already exists and create it in the case that not.

-In the work script "rim_pre_dump":
a) Apply the new functios.
b) Change the order of some lines to adapt it to a new way of work: first the work folders (originals, backup, ...) are created.
c) Present the arguments of all functions used with a line break.

@AtogmatomaProgramming

AtogmatomaProgramming commented Nov 10, 2025

Copy link
Copy Markdown
Contributor Author

New modifications on the script:

-Move provisionally "rim_pre_dump_functions.R" to folder check_errors_functions.

-Add a sapply loop, where the function file.list is used, to import the functions form R directory.

-Remove the part and the variables related to YEAR_BASE_FOLDER, it was unuseful.

-Make few modifications: on move_files (reorder arguments) and, in the arguments of the dir.create used in manage_work_folder, change the status of recursive from FALSE to TRUE, to create directly all the folders present in the whole path.

@AtogmatomaProgramming

Copy link
Copy Markdown
Contributor Author

In this case, were deleted all the things related with the YEAR_BASE variable. The new modifications made the unuseful.

@AtogmatomaProgramming

Copy link
Copy Markdown
Contributor Author

-Modifications of manage_work_folder function to solve the problem where base_path argument is not used.

@AtogmatomaProgramming

Copy link
Copy Markdown
Contributor Author

-Fix a problem viewed on manage_work_folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant