if (FALSE) {
# Can use a path to a file:
script_file <- "crunch_automation.txt"
ds <- runCrunchAutomation(ds, script_file)
# Or a string directly:
ds <- runCrunchAutomation(ds, "RENAME v1 TO age;")
# A "dry run" that validates the script but does not run it:
runCrunchAutomation(ds, "RENAME V1 TO age;", dry_run = TRUE)
# After a failed run, some error information prints to console,
# But more details are available with function:
showScriptErrors()
# After a successful run, can look at scripts:
scripts(ds)
# Run Crunch Automation on a folder:
my_folder <- cd(projects(), "folder1")
runCrunchAutomation(my_folder, 'CREATE FOLDER "folder2";')
}
Run the code above in your browser using DataLab