Displaying 2 results from an estimated 2 matches for "o2sat".
Did you mean:
comsat
2008 Jun 12
2
Getting Batch mode to continue running a script after running into errors
I'm invoking R in batch mode from a bash script as follows:
R --no-restore --no-save --vanilla
<$TARGET/$directory/o2sat-$VERSION.R>
$TARGET/$directory/o2sat-$VERSION.Routput
When R comes across some error in the script however it seems to halt
instead of running subsequent lines in the script:
Error in file(file, "r") : cannot open the connection
Calls: read.table -> file
In addition: Warning messa...
2010 Nov 22
4
Wait for user input with readline()
...uring that the script does
not proceed until a value has been entered to readline(). Can I put readline
in a function that will wait for input?
Are there other options for getting user input that allow require that the
script wait for user input?
In the code I want the user to input the value for O2sat using
O2sat=as.numeric(readline("What is the O2 saturation in umole/L?"))
The problem is that when I run this entire block of code rather than running
individual functions, the program doesn't wait for the user input and just
continues to the next line of code. Does anyone have a wor...