Questions tagged [rlink]

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

Filter by
Sorted by
Tagged with
7 votes
0 answers
93 views

How To Install R Packages Via R Link In Windows

So it looks like I got RLink working on my Windows machine: ...
user avatar
3 votes
0 answers
58 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; ...
user avatar
2 votes
1 answer
103 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?
user avatar
2 votes
0 answers
52 views

Error using InstallR from RLink` [closed]

I am writing the code Needs["RLink`"] RLinkResourcesinstall[] and I obtained the output ...
user avatar
  • 490
2 votes
0 answers
60 views

RLink load xlsx package

I'm trying to load the xlsx package in RLink (M 12.1, W10). This works fine: ...
user avatar
  • 1,945
2 votes
0 answers
35 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: ...
user avatar
  • 21
8 votes
1 answer
231 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 ...
user avatar
7 votes
1 answer
148 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...
user avatar
3 votes
0 answers
53 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-...
user avatar
  • 71
3 votes
0 answers
73 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 ...
user avatar
  • 31
3 votes
0 answers
125 views

InstallR failing in Mathematica 12

I was trying to use R with Mathematica 12 I tried the following: ...
user avatar
2 votes
0 answers
80 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 ...
user avatar
  • 121
3 votes
1 answer
251 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. ...
user avatar
3 votes
0 answers
143 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. ...
user avatar
  • 39.3k
2 votes
0 answers
73 views

RLink Java Issue

I used following: ...
user avatar
  • 8,105
2 votes
0 answers
87 views

can't start r process in cmd

...
user avatar
  • 8,105
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 ...
user avatar
1 vote
0 answers
139 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: ...
user avatar
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: ...
user avatar
2 votes
1 answer
86 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 ...
user avatar
24 votes
1 answer
677 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, ...
user avatar
  • 224k
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?
user avatar
3 votes
0 answers
93 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 ...
user avatar
  • 81
4 votes
3 answers
250 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 ...
user avatar
  • 1,473
0 votes
1 answer
90 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. ...
user avatar
  • 39.3k
2 votes
0 answers
188 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. ...
user avatar
  • 39.3k
1 vote
1 answer
87 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 ...
user avatar
  • 8,105
4 votes
1 answer
72 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 ...
user avatar
  • 409
1 vote
0 answers
133 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 ...
user avatar
  • 5,182
7 votes
0 answers
364 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 ...
user avatar
1 vote
0 answers
160 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 ...
user avatar
  • 716
2 votes
0 answers
246 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 ...
user avatar
  • 5,182
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 ...
user avatar
2 votes
0 answers
71 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 ...
user avatar
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: ...
user avatar
  • 13
9 votes
1 answer
851 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 ...
user avatar
  • 3,077
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 ...
user avatar
2 votes
0 answers
299 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: ...
user avatar
6 votes
1 answer
554 views

Factor Analysis

How can I do Factor Analysis with Mathematica? This is my best attempt so far: ...
user avatar
  • 193
10 votes
1 answer
305 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 ...
user avatar
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-...
user avatar
  • 21
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 ...
user avatar
  • 21
1 vote
1 answer
593 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 ...
user avatar
3 votes
1 answer
273 views

Ordinary Least Squares (OLS) with RLink

I need to calculate the parameters b0, b1 and b2 in: ...
user avatar
3 votes
0 answers
120 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 ...
user avatar
  • 1,760
4 votes
2 answers
333 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....
user avatar
  • 618
6 votes
1 answer
745 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 ...
user avatar
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 ...
user avatar
  • 2,788
7 votes
2 answers
204 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 ...
user avatar
5 votes
1 answer
663 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 ...
user avatar
  • 12.7k