# \#rcall

**URL:** https://discourse.julialang.org/tag/rcall/603.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [ERROR: Error building \`RCall\`:](https://discourse.julialang.org/t/error-error-building-rcall/102450)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [November 3, 2025, 10:57am UTC](https://discourse.julialang.org/t/error-error-building-rcall/102450 "2025-11-03T10:57:36Z")

</div>

I’m getting this error (below) when trying to build RCall. it suggest Try adding /Library/Frameworks/R.framework/Resources/lib to the "LD\_LIBRARY\_PATH" environmental variable but i don’t know how to do. Can someone tel…

---

## [RCall.jl - how to handle R package dependencies?](https://discourse.julialang.org/t/rcall-jl-how-to-handle-r-package-dependencies/83172)

<div class="topic-metadata">

**Author:** [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Replies:** 3\
**Last updated:** [March 27, 2025, 9:47am UTC](https://discourse.julialang.org/t/rcall-jl-how-to-handle-r-package-dependencies/83172 "2025-03-27T09:47:28Z")

</div>

Hi there, I’m working on an experimental feature for CounterfactualExplanations.jl that adds native support for explaining R torch models. This is made possible by RCall.jl and local tests are passing. But since torch i…

---

## [\[ANN\] RSetup.jl: mini-R package manager for use with RCall](https://discourse.julialang.org/t/ann-rsetup-jl-mini-r-package-manager-for-use-with-rcall/127396)

<div class="topic-metadata">

**Author:** [@technocrat](https://discourse.julialang.org/u/technocrat)\
**Replies:** 0\
**Last updated:** [March 27, 2025, 2:23am UTC](https://discourse.julialang.org/t/ann-rsetup-jl-mini-r-package-manager-for-use-with-rcall/127396 "2025-03-27T02:23:43Z")

</div>

using RSetup setup\_r\_environment(\["classInt"\]) This single-function package will detect if the R environment includes the classInt library (or your choice of libraries) and, if needed, install it so that it is available…

---

## [RCall not working - package 'stats' not found](https://discourse.julialang.org/t/rcall-not-working-package-stats-not-found/93206)

<div class="topic-metadata">

**Author:** [@Danilo\_Carajiliascov](https://discourse.julialang.org/u/Danilo_Carajiliascov)\
**Replies:** 5\
**Last updated:** [July 30, 2024, 4:13pm UTC](https://discourse.julialang.org/t/rcall-not-working-package-stats-not-found/93206 "2024-07-30T16:13:17Z")

</div>

Hi, Everyone! Can someone help me with these errors, please? It was working yesterday at night and today mornig started to show the errors above :pensive: After loading package (“using RCall”) ┌ Warning: RCall.jl: Du…

---

## [RCall: internet routines cannot be loaded -\> can't install R packages](https://discourse.julialang.org/t/rcall-internet-routines-cannot-be-loaded-cant-install-r-packages/116202)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [June 25, 2024, 1:29pm UTC](https://discourse.julialang.org/t/rcall-internet-routines-cannot-be-loaded-cant-install-r-packages/116202 "2024-06-25T13:29:27Z")

</div>

I have installer RCall making it point to my default R installation on Ubunu. If I open a R terminal and I install a R package I have no issues, but if I use RCall in Julia like: R\> install.packages('Rcpp', repos='http…

---

## [Help wrapping Symbolics.jl for RCall](https://discourse.julialang.org/t/help-wrapping-symbolics-jl-for-rcall/114935)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 1\
**Last updated:** [May 30, 2024, 4:59pm UTC](https://discourse.julialang.org/t/help-wrapping-symbolics-jl-for-rcall/114935 "2024-05-30T16:59:20Z")

</div>

I have a problem that fails due to Num (from Symbolics.jl) not being automatically wrapped by RCall.jl. Here’s a minimal example that throws the error: using Symbolics using RCall @variables x @rput x ERROR: MethodErr…

---

## [Loading R packages not working anymore after updating R](https://discourse.julialang.org/t/loading-r-packages-not-working-anymore-after-updating-r/113592)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Replies:** 2\
**Last updated:** [April 28, 2024, 9:54pm UTC](https://discourse.julialang.org/t/loading-r-packages-not-working-anymore-after-updating-r/113592 "2024-04-28T21:54:11Z")

</div>

For a while, I had been calling R functionalities from my Julia code successfully with package RCall. Recently, however, I updated the version of my R installation, and now it seems the Julia code is broken. I should say…

---

## [Issues in conda-based simultaneous installation of PyCall and RCall](https://discourse.julialang.org/t/issues-in-conda-based-simultaneous-installation-of-pycall-and-rcall/108183)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [December 30, 2023, 3:27pm UTC](https://discourse.julialang.org/t/issues-in-conda-based-simultaneous-installation-of-pycall-and-rcall/108183 "2023-12-30T15:27:56Z")

</div>

Hello, I have a project where I use both PyCall and RCall with both downloaded using conda (i.e. I set both ENV\["PYTHON"\] = "" and ENV\["R\_HOME"\] = "\*"). Now the issue is in github CI, where conda complains of package co…

---

## [My julia code has segfault only on exit - is there a way to simply stop julia without calling into this finalization stuff](https://discourse.julialang.org/t/my-julia-code-has-segfault-only-on-exit-is-there-a-way-to-simply-stop-julia-without-calling-into-this-finalization-stuff/106538)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 1\
**Last updated:** [November 22, 2023, 7:08am UTC](https://discourse.julialang.org/t/my-julia-code-has-segfault-only-on-exit-is-there-a-way-to-simply-stop-julia-without-calling-into-this-finalization-stuff/106538 "2023-11-22T07:08:40Z")

</div>

I just opened an issue for a segmentation fault with RCall which only happens on exit I would like to find a workaround, i.e. somehow kill Julia without running into those finalizers which cause segmentation fault. It…

---

## [Issues reading big CSV file despite using CSV.Row](https://discourse.julialang.org/t/issues-reading-big-csv-file-despite-using-csv-row/84395)

<div class="topic-metadata">

**Author:** [@candidaorelmex](https://discourse.julialang.org/u/candidaorelmex)\
**Replies:** 14\
**Last updated:** [July 18, 2022, 1:48pm UTC](https://discourse.julialang.org/t/issues-reading-big-csv-file-despite-using-csv-row/84395 "2022-07-18T13:48:11Z")

</div>

I’d like to import a .tsv file which CSV.read(file, DataFrame) doesn’t like. The error I get is ArgumentError: length argument to Parsers.PosLen (204996615) is too large; max length allowed is 1048575 I found an alt…

---

## [RCall and Out of Memory Errors. Are there limits?](https://discourse.julialang.org/t/rcall-and-out-of-memory-errors-are-there-limits/76486)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 1\
**Last updated:** [February 15, 2022, 2:59pm UTC](https://discourse.julialang.org/t/rcall-and-out-of-memory-errors-are-there-limits/76486 "2022-02-15T14:59:17Z")

</div>

I am using RCall.jl to run some estimations of hidden markov models using the R package seqHMM. I have 64GB of RAM and task manager never shows me using above 20GB total, yet I am getting out of memory errors when estima…

---

## [Has Anyone Used RCall with \`renv\`?](https://discourse.julialang.org/t/has-anyone-used-rcall-with-renv/76310)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 2\
**Last updated:** [February 14, 2022, 4:45pm UTC](https://discourse.julialang.org/t/has-anyone-used-rcall-with-renv/76310 "2022-02-14T16:45:20Z")

</div>

Hi all! Just was wondering if anyone has had any luck with using renv with RCall. In R, I use renv to manage my package versions per project (very similar to lock files in Julia) and usually you can activate renv easil…

---

## [How to render ggplot2 plots in html through Weave and RCall?](https://discourse.julialang.org/t/how-to-render-ggplot2-plots-in-html-through-weave-and-rcall/74913)

<div class="topic-metadata">

**Author:** [@tp2750](https://discourse.julialang.org/u/tp2750)\
**Replies:** 2\
**Last updated:** [January 23, 2022, 1:14pm UTC](https://discourse.julialang.org/t/how-to-render-ggplot2-plots-in-html-through-weave-and-rcall/74913 "2022-01-23T13:14:45Z")

</div>

How do I include plots made with ggplot2 (through RCall) in html reports through Weave? I try this (which works in a Jupyter notebook): using RCall, DataFrames d = DataFrame(x = \[1,2,3\], y = \[4,5,6\]) @rput d @rlibrary …

---

## [Problem in plot when use RCall package](https://discourse.julialang.org/t/problem-in-plot-when-use-rcall-package/73798)

<div class="topic-metadata">

**Author:** [@maoc](https://discourse.julialang.org/u/maoc)\
**Replies:** 2\
**Last updated:** [December 30, 2021, 3:27am UTC](https://discourse.julialang.org/t/problem-in-plot-when-use-rcall-package/73798 "2021-12-30T03:27:16Z")

</div>

This question is not necessarily a question related to the julia language, but rather to the RCall package. I don’t know if the problem is with RCall or jupyter notebook either. I need to use Julia and R on the same note…

---

## [RCall.jl and Unicode](https://discourse.julialang.org/t/rcall-jl-and-unicode/67654)

<div class="topic-metadata">

**Author:** [@matvil](https://discourse.julialang.org/u/matvil)\
**Replies:** 2\
**Last updated:** [September 3, 2021, 5:33pm UTC](https://discourse.julialang.org/t/rcall-jl-and-unicode/67654 "2021-09-03T17:33:52Z")

</div>

R on Windows does not seem to support unicode (UTF-8), at least not the non-experimental versions. I am currently doing a workaround where I copy all unicode arguments in Julia to ascii before passing them to R via RCal…

---

## [Accessing variables in Main within a Module using RCall](https://discourse.julialang.org/t/accessing-variables-in-main-within-a-module-using-rcall/63813)

<div class="topic-metadata">

**Author:** [@viraltux](https://discourse.julialang.org/u/viraltux)\
**Replies:** 4\
**Last updated:** [July 1, 2021, 5:30pm UTC](https://discourse.julialang.org/t/accessing-variables-in-main-within-a-module-using-rcall/63813 "2021-07-01T17:30:40Z")

</div>

I would like to access variables declared in Main from within a module but they’re not in scope and I wonder how this can be achieved. using RCall x = 1 f(var::String) = eval(Meta.parse("@rput ("\*var\*")")) module M1 …

---

## [Wrapping a simple R package](https://discourse.julialang.org/t/wrapping-a-simple-r-package/55349)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 2\
**Last updated:** [February 16, 2021, 4:47am UTC](https://discourse.julialang.org/t/wrapping-a-simple-r-package/55349 "2021-02-16T04:47:37Z")

</div>

I want to wrap a simple ML package: sprintr. In R the code is straight-forward: library(sprintr); m = cv.sprinter(x = X, y = y) pred = predict(m, newdata = XH) In Julia it works in 1-step: X = randn(100,5) y = 7.0 .…
