-
Notifications
You must be signed in to change notification settings - Fork 72
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
Feature Request: print output from R to windows console #93
Comments
If I correctly understood, this is the same question/remark as #87 (comment) |
No, it is not the same question: I can see results of the tasks in the logfiles, but only if I know which task is writing the logfiles where and then go there and open the file. |
I meant that the solution is the same as what is depicted at #87 (comment) |
I might be able to change the location where to write the log-files. But how does this bring them to the console output? Is the console window I see from R or from the windows task scheduler? If it is the R console, why are the messages not shown by default, as it is when I run the srcipt from the GUI? |
Code taskscheduleR/R/taskscheduleR.R Line 146 in ea6ebee
>> means append it to the log file2>&1 means put all printed statements and errors and warnings in that log file, if you omit it, it just prints normal print statements to the console which is popped up instead of sending it to the log file.If you want to see progress, add options(echo = TRUE) in your R code.If you just want to see which processes are running, call taskscheduler_ls If your question is more like 'I'm using RStudio as a GUI and I'm expecting the progress to be printed there', I have to inform you that this R package has nothing to do with RStudio. |
What you pointed out about the piping is exactly what I'was looking for. But I would need to print the output to the console and write it to the log file. Is that possible as well? |
You can look at the code at the cronR package, there this is implemented https://github.com/bnosac/cronR/blob/master/R/cron_rscript.R#L36-L113 |
We use the package on our server for several tasks and this is working great.
The only downside is, that several black console windows are shown, but it is not possible to see, if something is done successfully in the background or a problem has occured or even if this console is caused by the task created with rtaskscheduler.
Is it possible to implement a feature, that output from R is shown in the windows console during execution?
That would be wonderfull.
The text was updated successfully, but these errors were encountered: