Hi Maria I don’t know anything about R studio but taking a look at the website it seems to be able to make desktop applications or web applications. Since you didn’t mention which one you’re making I’ll give you some advice for either situation.
For desktop applications:
Typically two or more applications can communicate with each other using an IPC socket. IPC stands for Inter Process Communication. A socket is a code object used for communication. Assuming R studio has an IPC socket then yes you could use IPCsockets to communicate. Although beware I’m not sure if Xojo builds on Windows support IPC sockets.
If R studio doesn’t have IPC sockets (or you want to build for Windows OS) then other sockets may be used such as TCPsockets.
If R studio doesn’t have any sockets then communication can still be possible by using one or more text files which both applications are using to retrieve and send each other messages. This solution is not ideal but it’s very doable. Each application would periodically check (using a timer) if there’s any new messages by reading the text file’s data and if so do whatever it’s supposed to.
Something like this :
Xojo app wants to tell your R app to do something.
Xojo app would write this command to the specified text file which your R app is periodically checking.
Your R app is using a timer to periodically check the text file looking for commands from the Xojo app.
If the command exists, your R app does whatever. Once whatever is finished your R app could remove that command from the text file so it doesn’t endlessly repeat that function.
Same process for your R app ‘talking’ to your Xojo app. The R app would write a command to the text file that the Xojo app is checking.
Alternatively if you’re using a database which supports concurrent connections you should probably use that instead of a text file. Both apps would periodically check the database for commands from the other app.
So something like that would work although not an ideal situation.
If you’re R app is a web application located locally or on the internet :
Then you could use Xojo http or https sockets to communicate with your R app. However be advised Xojo currently does not support http 1.1 at this time so if your R app only supports that you’ll have to come up with another Xojo solution which will be more work. Nobody knows when Xojo is going to support http 1.1 but we hope it’s coming soon.
Are you by chance studying the turtles of Hawaii that are getting cancerous tumors and dying ?
Very sad situation
I wonder if it’s from the radiation and or other pollutions?
Hope this helped you and please keep up the good work