Closed ezmiller closed 3 years ago
I've got the error:
R exception: Error in menu(choices = c("Yes", "No"), title = title) :
menu() cannot be used non-interactively
I don't think it is solvable. I see that there are function intended to use within interactive session (like menu
, readline
or select.list
).
Menu help stays:
It is an error to use menu in a non-interactive session.
I think our session is not interactive (maybe there is a way to turn it on and force using GUI?)
More info about interactive session: https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/interactive
clojisr
(in case of RServe) is non-interactive
(base/interactive) ;; => [1] FALSE
Also, this can be related: https://stackoverflow.com/questions/17328172/forcing-interactive-r-session but I haven't tried it yet.
No chance to fix it, there are functions which are supposed to be used within RStudio and require interactive session. There is no option to turn it on for RServe.
When you call the tidytext function
get_sentiments
and you have not yet downloaded the required dataset, you get a request for user input if you are working in R:When you call this fn in clojisr, you get an error that doesn't really indicate what has happened. You do see the output in the console.
It would be nice to somehow allow for user input across the divide.