Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rlink]

Questions about integrating Mathematica and the statistics package R using the RLink functionality provided with Mathematica.

2
votes
1answer
76 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. ...
2
votes
0answers
81 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
0answers
42 views

RLink Java Issue

I used following: ...
2
votes
0answers
55 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
0answers
69 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
1answer
64 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
1answer
53 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
1answer
377 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
0answers
57 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
0answers
77 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 ...
3
votes
3answers
173 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
1answer
79 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
0answers
156 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
1answer
74 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
1answer
68 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
0answers
114 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 ...
6
votes
0answers
173 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
0answers
86 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 ...
1
vote
0answers
181 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
0answers
35 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
0answers
69 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
1answer
61 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: ...
8
votes
1answer
543 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
1answer
120 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
0answers
177 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: ...
5
votes
1answer
412 views

Factor Analysis

How can I do Factor Analysis with Mathematica? This is my best attempt so far: ...
10
votes
1answer
258 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
0answers
69 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
0answers
37 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
1answer
504 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
1answer
231 views

Ordinary Least Squares (OLS) with RLink

I need to calculate the parameters b0, b1 and b2 in: ...
2
votes
0answers
91 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
2answers
310 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
1answer
692 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
0answers
63 views

Sending RObject to RFunctions

I want to realize function from some R package in Mathematica. First load RLink and package what I need ...
5
votes
2answers
167 views

RLink Java(TM) platform has stop 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
1answer
604 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 ...
4
votes
0answers
244 views

Establish connection with RLink and Rtools

Has anyone gotten RLink to work with Rtools (or even tried)? If so a simple step-by-step would be much appreciated ! When attempting to access any Rtools functionality through RLink I get: The ...
13
votes
2answers
925 views

Giving JLink Huge Memory by Default

I have noticed that Mathematica makes use of Java by way of JLink, for example, in the extensions such as DatabaseLink and (I think) RLink. It also seems like Java is a first-class citizen for writing ...
12
votes
1answer
762 views

RLink and R v3.0.1?

Running InstallR["RHomeLocation" -> "C:\\Program Files\\R\\R-3.0.1"] results in a popup box titled "Version Mismatch" saying Error: R.DLL version does not ...
25
votes
2answers
2k views

How can I conveniently call igraph from Mathematica?

Mathematica has lots of functions for working with graphs and networks, but there are still some functionality holes that are provided by other packages. Also, due to the nature of graph theory, ...
12
votes
1answer
433 views

Using non-trivial objects in RLink

I would like to use RLink to access igraph, which has an R interface. I do not know R; my motivation for learning it is to be able to access igraph easily. I installed igraph using ...
3
votes
1answer
269 views

Parallelization of REvaluate[]?

Is there a way to run several RLink computations via REvaluate[] in parallel, e.g. with ParallelTable[]?
21
votes
1answer
1k views

How to get a plot generated by R returned in an output cell?

It seems we'll never have built in two axis plots and list plots in Mathematica but you can make them in R. ...
24
votes
4answers
2k views

Time-series decomposition in Mathematica

I'm studying time-series in R with this book, and there is a nice command in R that creates decompositions. Inside Mathematica 9 the command can be executed as: ...
32
votes
2answers
953 views

Special Mathematica Cell to work with R code

I have enjoyed working with R inside Mathematica. But it would be nice If I could have a special R cell. For example, instead of typing ...
9
votes
1answer
838 views

TemporalData frequency option as in R

I'm studying R, and am very impressed by the simplicity of some commands and in the way R handles temporal data. For example, in R, if you have some one-dimensional temporal data, you can easily ...
4
votes
1answer
554 views

Using a different version of R with RLink on Windows 7

I'd like to run the R version installed in my Windows 7 system from within Mathematica 9 but when I execute the following command: ...
9
votes
1answer
383 views

Getting R textual output into Mathematica

I use Mathematica with R because I am able to keep my code and output organized with the notebook interface. Although I can get R structures into Mathematica using REvaluate, I can't figure out how to ...
4
votes
1answer
366 views

Accessing the Data of an RLink RDataFrame

I am trying to extract the data table itself from an RLink-generated RDataFrame: ...