Skip to content

Commit

Permalink
Update 04-02-creating_log_files_automatically.md
Browse files Browse the repository at this point in the history
  • Loading branch information
larsvilhuber authored Dec 18, 2024
1 parent 6bd2513 commit f4d5e4c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 04-02-creating_log_files_automatically.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ which will create a second-precise date-time stamped log file. Finally, if you w
R CMD BATCH --no-save --no-restore main.R main.$(date +%F-%H:%M:%S).Rout
```

The most output, and the least "inherited" information, is obtained by running the following command:

```bash
R CMD BATCH --debugger --verbose --vanilla main.R main.$(date +%F-%H:%M:%S).Rout
```

:::{warning}
If there are other commands, such as `sink()`, active in the R code, the `main.Rout` file will not contain some output.
Expand Down

0 comments on commit f4d5e4c

Please sign in to comment.