Questions tagged [rlink]
Questions about integrating Mathematica and the statistics package R using the RLink functionality provided with Mathematica.
68
questions
7
votes
0
answers
135
views
How To Install R Packages Via R Link In Windows
So it looks like I got RLink working on my Windows machine:
...
3
votes
0
answers
65
views
Can't get ggplot2 to work using RLink
Has anybody managed to call ggplot functions successfully using RLink?
I've tried the following in Windows 10 with Mathematica 11.3;
...
2
votes
1
answer
107
views
RLink fails in Mathematica 12.2.0 Mac OS Catalina
Cannot run RLink in mathematica in Catalina. I get a failed error even though the paclet loads. Any pointers?
2
votes
0
answers
55
views
Error using InstallR from RLink` [closed]
I am writing the code
Needs["RLink`"]
RLinkResourcesinstall[]
and I obtained the output
...
2
votes
0
answers
73
views
RLink load xlsx package
I'm trying to load the xlsx package in RLink (M 12.1, W10).
This works fine:
...
2
votes
0
answers
36
views
Problem Install R on OS 10.14
Using Mathematica 12.1.0.0 on Mac OS 10.14
Attemping to use my version of R
Tried using:
...
8
votes
1
answer
237
views
What is the current status of RLink? Are there plans for any future development?
RLink has not seen significant changes since it first appeared back in V9 (2012). OTOH, it has a number of issues (existing from the start or accumulated over the years), which make it more difficult ...
7
votes
1
answer
151
views
How to enable R in ExternalLanguage cell?
Mathematica 12.1 adds support for R in the ExternalLanguage cell. But this does not work out of the box.
Mathematica downloads very old RLinkRuntime-Windows-9.0.0.0...
3
votes
0
answers
54
views
How to implement with Rlink and RFunction the mblm non parametric regression library in R
See (https://cran.r-project.org/web/packages/mblm/index.html)
I would imagine this could be done analoge to a blog from 2013 by Jon Mcloone (https://blog.wolfram.com/2013/05/22/why-would-a-...
3
votes
0
answers
79
views
Installing R failed
To install R, I evaluated the following code
Needs["RLink`"]
InstallR["RHomeLocation" -> "C:\\Program Files\\R\\R-3.6.1"]
and I ...
3
votes
0
answers
126
views
InstallR failing in Mathematica 12
I was trying to use R with Mathematica 12
I tried the following:
...
2
votes
0
answers
82
views
Failed to use a R package via Rlink on Windows
I need to import .ibw (Igor files.) into Mathematica.
For this I used
1) to go in R via Rlink (OS windows),
2) to load the package IgorR
3) to install it
and then to use it.
Here is a script which ...
3
votes
1
answer
259
views
Installing R for use with V11.3 on Windows 10
I can't install R on Windows 10. I tried some solutions that I found on the Internet, but they did not help.
...
3
votes
0
answers
151
views
How to match random number generator to R?
Although I know the algorithm that R is using for pseudo-random numbers I am unable to match the generation of random numbers.
...
2
votes
0
answers
75
views
RLink Java Issue
I used following:
...
2
votes
0
answers
87
views
2
votes
0
answers
67
views
RLink with R3.5.0 on Windows 10 and Mathematica 10.2 is not working [duplicate]
If I install R with
InstallR["RHomeLocation" -> "C:\Program Files\R\R-3.5.0"]
the system (Mathematica 10.2 on Windows 10 Pro and R-3.5.0) is giving the ...
1
vote
0
answers
150
views
Why isn't Mathematica acknowledging my R function?
I believe my problem is similar to this question but I couldn't solve it. After installing the package readstata13, I run the following code in R and it works fine:
...
3
votes
1
answer
67
views
RLink: Setting a matrix with constants returns a different matrix
Let's assume I have the following matrix:
{{1, 0, τ^-1},
{-κ, 1, 0},
{-(1 - ρr) ψ2, -(1 - ρr) ψ1, 1},
{0, 0, 0}}
which is equal to:
...
2
votes
1
answer
88
views
Calling source with RLink in Mathematica
Let's imagine that I have a file called gensys.R where a function gensys is defined, which I would like to use in the mathematica environment and work with it.
When using RLink, I've tried
...
24
votes
1
answer
695
views
RLink no longer works with R 3.5 on macOS
How can I use RLink with R 3.5 (the latest version) on macOS?
I believe that Mathematica has huge potential as a glue language, and that links to other systems, like RLink, are not only very useful, ...
3
votes
0
answers
62
views
How Many of R's Functionalities Are Available From Inside Mathematica?
When R is linked to Mathematica, how many of its functionalities are available from inside of Mathematica?
3
votes
0
answers
94
views
Mathematica with Portable R
I have on my Company Laptop no administrator privileges (Windows 7, 64 Bit).
After installation of R-portable and registering to HKEY_CURRENT_USER, I still cannot call R from Mathematica:
The first ...
4
votes
3
answers
267
views
RDataFrame to Dataset
Is there an easy way to convert an RDataFrame object to a Mathematica Dataset?
For example I have an R function which returns
...
0
votes
1
answer
92
views
Random variate from R distribution does not fit expected distribution in Mathematica
I am learning the ropes with RLink` and am getting an odd result from some of the functions in the R actuar package.
...
2
votes
0
answers
190
views
How to get InstallR to download latest version of R?
I just ran InstallR and it installed an incredibly old version of R from year 2011.
...
1
vote
1
answer
88
views
rlink to a remote installation
I have a r installation on a server machine and have mathematica on my laptop. I have been using DatabaseLink to connect to the remote sql server and performing ...
4
votes
1
answer
75
views
Passing mixed type data to R with Rlink takes enormously long time
I am trying to pass a matrix of 150*4000 real numbers to R with RLink. If I try to pass the whole matrix the process seems to take forever, without stopping for errors. The interesting part is that if ...
1
vote
0
answers
138
views
RLink error with dynamic libraries on Mac 10.12 with Mathematica v11
Background
Yes, there have been a lot of questions on RLink (quite a few on just how to get it working or installing packages). However none directly address ...
7
votes
0
answers
381
views
DLL error message connecting to R
I am trying to connect to a local version of R from Mathematica 10.1.0 on Windows 10:
InstallR["RHomeLocation" -> "C:\\Program Files\\R\\R-3.3.2"]
I get the ...
1
vote
0
answers
165
views
Is it possible, with RLink, for Mathematica to perform operations on an R data.frame?
In my humble opinion, Mathematica produces the best and unique-looking graphics for data analysis in general. However, exclusively using it for data analysis can be troublesome as it doesn't have the ...
2
votes
0
answers
250
views
RLink: How to install R packages such as Bioconductor
I would like to install Bioconductor R packages. However I get error that the variables are not found... I really have no idea how RLink so I do appreciate your ...
1
vote
0
answers
38
views
Rlink : loading an option a package from the R side
Perhaps a stupid question but I need to ask it.
According to the blog of Matt Asher, the following code permit a perfect sample simulation
...
2
votes
0
answers
72
views
Difficult R installation
In RLink and R v3.0.1?, there is an update which say that the problem of the lack of compatibility between the expected version and the last version of R has been settled for version 10.0.1 of ...
1
vote
1
answer
64
views
Is there an equivalent to Mathematica's ToString in R for use with RLink? [closed]
x = "vvvv"
REvaluate["f(\"vvvv\")"] (*works*)
Want to replace vvvv with x:
...
9
votes
1
answer
895
views
Create a Mathematica function that can be called from R or Matlab
I would like to export a function from Mathematica to allow it to be accessed from R and/or Matlab.
Is there a way to do this?
As an example, suppose I want to export the following (albeit ...
2
votes
1
answer
131
views
RLink: Cannot get Mathematica and R to look at the same workspace
I am trying to get Mathematica and R to look at the same workspace, but have failed thus far. The task is to produce variables that will be operated upon by either program while the current state of ...
2
votes
0
answers
315
views
How to get a plot generated by ggplot2 in R ggplot returned in an output cell [closed]
I'd like to get a plot generated by ggplot2 in Mathematica but using the getRPlot function doesn't seem to work:
...
6
votes
1
answer
577
views
Factor Analysis
How can I do Factor Analysis with Mathematica?
This is my best attempt so far:
...
10
votes
1
answer
314
views
Is there an efficient way to load a large list to Mathematica from R within Rlink?
I'm working on something that involves using both R and Mathematica. For this something, I first generate a large R list (1000 matrices, each 200x1000, mixed integer and real values) and then need to ...
1
vote
0
answers
81
views
Problems with RLink; Debian Wheezy, external R version 2.15.1
Hei,
I am still in stuck with InstallR. I followed the instructions presented in a link:
Installing RLink on Linux
but still no result.
I am running Linux 3.2.0-...
0
votes
0
answers
44
views
Mathematica does not launch after RLink installation /Linux [duplicate]
Hei,
I have a problem with Mathematica 10.0 launching after RLink installation.
I am running Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u3 x86_64 GNU/Linux
Exactly what I did:
Typed on ...
1
vote
1
answer
604
views
How can I connect the Interactive Brokers TWS API to Mathematica using RLink for automated trading?
I do know there is documentation for the IB TWS Java API. However, instead of Java, I would like to establish a connection between Mathematica and the IBrokers API module using RLink as a 'proxy' to ...
3
votes
1
answer
279
views
Ordinary Least Squares (OLS) with RLink
I need to calculate the parameters b0, b1 and b2 in:
...
3
votes
0
answers
123
views
Parsing RLink RObject for aovlist and other object types
There are some slightly similar requests out there (e.g. Getting R textual output into Mathematica ) but I'm wondering if anyone has put together a more general purpose solution to parsing ...
4
votes
2
answers
334
views
InstallR on OS X with external R installation on 10.0.1.0
I had no problem to follow the instructions given at InstallR on OS X with external R installation to get an external R working with Mathematica 10.0.0.0. However when Mathematica was updated to 10.0....
6
votes
1
answer
750
views
Installing R packages using RLink on Mac OS X
Is there any updates regarding installing CRAN packages via RLink in Mathematica 10 on Mac OS X? Or are we still stuck with the base R package and that's it?
I was able to point to my R distribution ...
2
votes
0
answers
68
views
Sending RObject to RFunctions
I want to realize function from some R package in Mathematica.
First load RLink and package what I need
...
7
votes
2
answers
205
views
RLink Java(TM) platform has stopped working
I am trying to send to R a big function,it has only three variables but output is quite big.So when i "translate" that code from mathematica to look like R code and input it in REvaluate i get the ...
5
votes
1
answer
671
views
InstallR on OS X with external R installation
How do I InstallR on OS X to use my already installed and configured R?
Simply using
...