powered by
Removes all log files from the resource's log folder for a specific project. Log files include SLURM output/error files and worker scripts.
project_resource_log_delete(project, resource, con = NULL)
Invisibly returns NULL. Called for side effects (deleting log files).
Character string specifying the project name.
Character string specifying the resource name.
An optional database connection. If NULL, a new connection is created and closed automatically.
Deletes all files matching the pattern <project>-<resource>* from the log folder specified in the resource configuration.
<project>-<resource>*
Currently only supports SLURM resources.
This function is automatically called by project_reset when log_clean = TRUE.
project_reset
log_clean = TRUE
project_reset, resource_add
resource_add
if (FALSE) { # Not run: # Delete logs for specific project-resource project_resource_log_delete("simulation_study", "hpc") }
Run the code above in your browser using DataLab