Resets all tasks in a project to idle status, stops the project, and optionally cleans log files. Useful for restarting a project from scratch.
Details
This function performs three operations:
Resets all tasks to idle status (NULL) using
task_resetStops the project using
project_stopOptionally deletes all log files from resource log folders
Use this when you want to:
Restart failed tasks
Re-run all tasks after fixing code
Clean up before redeploying workers
Warning: Setting log_clean = TRUE permanently deletes all
log files, which may contain useful debugging information.
Examples
if (FALSE) { # \dontrun{
# Not run:
# Reset project and clean logs
project_reset("simulation_study")
# Reset but keep logs for debugging
project_reset("simulation_study", log_clean = FALSE)
# Restart after reset
project_start("simulation_study")
worker_slurm("simulation_study", "hpc", fun = my_function)
} # }