Which R function or R package to use to run an R script via:
voice (voice command)?
chatbot?
I have developped a script that makes some tasks and I m looking for a way to run it and get output data via voice or chatbot
I have already read this one about chatbot https://www.r-bloggers.com/initiating-development-of-a-chatbot-with-plumber-and-ngrok/ but any other tutorial / ressource / R package is really appreciated.
I have also discovered this project that allows user to drive a Shiny app via voice (using Javascript) : https://github.com/yihui/shiny-apps/blob/master/voice/app.R
Related
I am new to R and Rstudio and currently trying to figure out a few things that would easen switching too much between the linux-terminal and the file navigating system. As I prefer using the former I would therefore like a method that allows me to open .R files in R studios in-built editor but directly via the linux terminal. I have tried to illustrate what I want on the attached picture. Does this functionality exist? So far I have only been able to execute R scripts via the terminal.
I have trawled through the web trying to find a similar question but they all seem to be related to executing R scripts via the terminal rather than opening them in the Rstudio editor.
I have an R Notebook that I am building to provide an analysis for somebody, and I am wondering if I should choose another option as I don't know if she will be able to run the Notebook without having R installed.
Is it possible to run an R Notebook as a single entity or must you have R installed in order to do it?
To rerun the notebook they require R. But the whole point of R Notebooks is that they produce a static document as output. That document (usually in HTML format) can be shared in isolation, and does not require any additional software besides a web browser to be viewerd.
Notebook will need R to run. To distribute a notebook without the R dependency will be a bit more elaborate, like installing rstudio server within a docker container. User will, in this particular case, need to have Docker installed and know how to start a container. From there on the user can interact with the code through a web browser.
Another option would be to use the cloud solution that some companies offer. It offers sharing functionality and you don't have to worry about the infrastructure or distribution of your work. There are some free plans that may work for you, but the real power is in premium features.
I am trying to build an Electron app to open a terminal emulator (using xterm.js) and inside that to run R.
Already found this very useful example, and able to automatically run R. But since the Electron user interface will have menus and dialogs (including a data viewer), it is mandatory to:
detect when new objects have been created in the R environment
return (for instance a new data frame) to the Electron app in order to display it
I am thinking to have a set of background R functions to report all of that, however I don't know if:
it is possible to send an invisible command to xterm (which will have an active R session)
the Electron app can receive (invisible) messages from xterm (more specifically, from the R process that is opened within xterm)
All this communication between the Electron app and the R session within xterm should not be echoed in the terminal, of course. It should be somewhat similar to RStudio, where the new R objects are automatically reported from the console to the user interface.
Any suggestion would be highly appreciated.
Imagine that I open two session R.
In the first (R1) I loaded the package dplyr.
Now, my questions is, is there way to get the sessionInfo/packages loaded in R1
through R2??
UPDATE:
I am writing a R help system in Atom editor. Atom editor currently not support the function help of R. So i am creating one. And to find the help of the function you need to search into packages where this function is, the best way is know what packages are loaded in your current session R. And that is my difficult. One way to solution this is to forgett the loaded packages and search in all installed packages, but it is to slowly if you have a lot of packages installed.
So in my script R i have a line that has this code:
pkg <- .packages() # all packages loaded in this currently session
But when I run this script R1 in other script R2, it not get the packages loaded in the currently script R2, but the script R1.
Use the Services API to interact with Hydrogen
The following details interacting with other packages in atom: http://flight-manual.atom.io/behind-atom/sections/interacting-with-other-packages-via-services/
Hydrogen is an interface to a jupyter kernel. It's is maintaining the session with the kernel, and it has a plugin API currently which you could use to get the connection information to the backing kernel. https://nteract.gitbooks.io/hydrogen/docs/PluginAPI.html. Using that you could send your call to packages().
There is also r-exec, but I believe that's Mac only. In that case, you could get the
I'm looking to build an Android app which calls an R script on clicking a button. I don't know how to get an R script to run using Android. I tried using openCPU but couldn't get ahead with it. Can anyone tell me how to call a custom R script using Android?