You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
add customizable responses's time for prompts #291
It would be possible add customizable response's time for possible Rstudio form's prompts?
I am looking at the code and this time was set in 10 secs, which is too short to fill them.
I have been having problems running jobs from RStudio if it has Rstudio prompts inside.
# check for response
if (file.exists(responseFile))
break
# check for lack of response
diff <- difftime(Sys.time(), now, units = "secs")
if (diff > 10)
stop("RStudio did not respond to rstudioapi IPC request")
# wait a bit
Sys.sleep(0.1)
}
Ahh, thanks -- so this is specifically for the case where rstudioapi is being invoked remotely; that is, from within an R child process. We can take a look at that.
Sorry about the force pushes to my fork; I didn't realize they were being linked here before I finalized my pull request. Please focus on the latest one (f2cc66e), and I'll make no more force pushes.
Activity
kevinushey commentedon Jan 8, 2024
Can you please give an example? AFAIK RStudio shouldn't be timing out in any of the prompts exposed to
rstudioapi.capitantyler commentedon Jan 9, 2024
The mentioned code is in the remote.R line 65
kevinushey commentedon Jan 9, 2024
Ahh, thanks -- so this is specifically for the case where
rstudioapiis being invoked remotely; that is, from within an R child process. We can take a look at that.capitantyler commentedon Jan 10, 2024
Well, I called it from a R Job, Besides, I filled the prompt manually.
Unhardcode timeout in callRemote(), callFun(), showDialog(). Fixes rs…
Unhardcode timeout in callRemote(), callFun(), showDialog(). Fixes rs…
Unhardcode timeout in callRemote(), callFun(), showDialog(). Fixes rs…
jonovik commentedon Jul 4, 2024
I created a pull request to solve this, but am a bit surprised it was not autolinked here:
#301
Sorry about the force pushes to my fork; I didn't realize they were being linked here before I finalized my pull request. Please focus on the latest one (f2cc66e), and I'll make no more force pushes.