-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run tryCatchLog in scheduled script - Rscript only gives first level #56
Comments
Thanks for reporting the issue! Can you please add your Side note: Overwriting R's default |
Thanks for the very fast response! Just to be sure, i changed to funciton name form c to dd. Does not matter to me as it is just dummy code for reproducibility. |
My first analysis (tested with the CRAN and dev version of The compact stack traces throws away all (function) calls that do not have a source code reference and and if you look at the full stack trace it is complete. Since you are calling R via
logs
This is document somehow deeply in the help for
I really care for user and usability feed-back so PS Here the compact and full call stack when called without source code references via
|
Sry for not reading Concerning usability: When using packages that requires customization (e.g. here custom logging format with My first thought would be that the usage of Rscript / R CMD BATCH would be the default when logging is required. Because in interactive sessions, the (extensive) interactive debugging options of RStudio can be used. If i schedule my scripts i cant use these anymore so i switch to logging. Then i require a traceback and get aware of your great pacakge. So, i guess, it would be great for future package users to have a section about scheduling scripts / Rscript and the usage of |
Thanks a lot for your feed-back, I will put your recommendations about batch usages onto my documentation TODO list (#48). |
Thanks for the great package.
I have troubles using the package within scheduled scripts.
Reproducible code:
I will run it twice:
Log would read:
(First part refers to output from R and the second for the RScript call. Note that the second call is not complete.
Same holds for a call with
R CMD BATCH
.Goal would be tun run a scheduled script and log the traceback with a custom format (e.g. using futile.logger).
Edit: SessionInfo
The text was updated successfully, but these errors were encountered: