# \#r

**URL:** https://discourse.julialang.org/tag/r/430.md

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

---

## [Julia analog to R's poly function, orthogonal polynomials by QR decomposition](https://discourse.julialang.org/t/julia-analog-to-rs-poly-function-orthogonal-polynomials-by-qr-decomposition/128640)

<div class="topic-metadata">

**Author:** [@Daniel\_Johansson](https://discourse.julialang.org/u/Daniel_Johansson)\
**Replies:** 24\
**Last updated:** [April 22, 2026, 3:57pm UTC](https://discourse.julialang.org/t/julia-analog-to-rs-poly-function-orthogonal-polynomials-by-qr-decomposition/128640 "2026-04-22T15:57:18Z")

</div>

Hey guys! Im trying to replicate some existing R code in julia for a proyect, but such R code depends on the stats base poly function which, given a collection of points, it computes orthogonal polynomials evaluated at …

---

## [R in Julia on Android works great :-) (Screenshot)](https://discourse.julialang.org/t/r-in-julia-on-android-works-great-screenshot/133719)

<div class="topic-metadata">

**Author:** [@Mike\_Stein](https://discourse.julialang.org/u/Mike_Stein)\
**Replies:** 2\
**Last updated:** [November 6, 2025, 11:12pm UTC](https://discourse.julialang.org/t/r-in-julia-on-android-works-great-screenshot/133719 "2025-11-06T23:12:40Z")

</div>

Having fun with Julia and R setup in Termux on Android with RCall julia library and being able to toggle in between them. For some reason not able to install.packages in R in Julia but not a big deal since can just inst…

---

## [Question about translating R code to Julia](https://discourse.julialang.org/t/question-about-translating-r-code-to-julia/132301)

<div class="topic-metadata">

**Author:** [@mpampuch](https://discourse.julialang.org/u/mpampuch)\
**Replies:** 3\
**Last updated:** [September 11, 2025, 8:26pm UTC](https://discourse.julialang.org/t/question-about-translating-r-code-to-julia/132301 "2025-09-11T20:26:53Z")

</div>

I am working on improving a Bioconductor package for analyzing high-throughput genetic assays by porting it from R to Julia. Currently it works well on statistical benchmarks, but one of the main limitations is speed, wh…

---

## [Juliacall and small binaries?](https://discourse.julialang.org/t/juliacall-and-small-binaries/130704)

<div class="topic-metadata">

**Author:** [@croberts](https://discourse.julialang.org/u/croberts)\
**Replies:** 2\
**Last updated:** [July 14, 2025, 3:08pm UTC](https://discourse.julialang.org/t/juliacall-and-small-binaries/130704 "2025-07-14T15:08:41Z")

</div>

With the imminent release of v1.12, I’m wondering how small binary compilation might subsequently facilitate Julia integration into non-Julia codebases? Obviously, one could write wrapper packages in \[R\] or Python, whic…

---

## [\[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…

---

## [Help with Julia Integration in RStudio](https://discourse.julialang.org/t/help-with-julia-integration-in-rstudio/124374)

<div class="topic-metadata">

**Author:** [@Gael\_Gautier](https://discourse.julialang.org/u/Gael_Gautier)\
**Replies:** 3\
**Last updated:** [January 3, 2025, 10:04am UTC](https://discourse.julialang.org/t/help-with-julia-integration-in-rstudio/124374 "2025-01-03T10:04:56Z")

</div>

Hello, I’m encountering an issue with using Julia in RStudio and would appreciate your help in resolving it. I am using RStudio to write Quarto (qmd) scripts that include R, Python, and Bash code. However, due to the l…

---

## [Why does GLM.jl fail to fit my logistic regression model but scikit learn and R has no issues? I think I found the reason](https://discourse.julialang.org/t/why-does-glm-jl-fail-to-fit-my-logistic-regression-model-but-scikit-learn-and-r-has-no-issues-i-think-i-found-the-reason/118553)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 5\
**Last updated:** [October 1, 2024, 2:43pm UTC](https://discourse.julialang.org/t/why-does-glm-jl-fail-to-fit-my-logistic-regression-model-but-scikit-learn-and-r-has-no-issues-i-think-i-found-the-reason/118553 "2024-10-01T14:43:54Z")

</div>

I have been trying to use GLM.jl to fit some logistic regression models and the fit failed. I don’t remember the exact error message but it was something about singularity. That annoyed me for a couple of years but I ne…

---

## [JuliaCall setup script not working (Ubuntu)](https://discourse.julialang.org/t/juliacall-setup-script-not-working-ubuntu/114328)

<div class="topic-metadata">

**Author:** [@Rohit](https://discourse.julialang.org/u/Rohit)\
**Replies:** 0\
**Last updated:** [May 15, 2024, 10:30pm UTC](https://discourse.julialang.org/t/juliacall-setup-script-not-working-ubuntu/114328 "2024-05-15T22:30:54Z")

</div>

Hi, I installed the latest version of Julia 1.10.3 in my AWS Ubuntu and I’m now trying to set it up in R. I tried using JuliaCall’s setup function but it shows me the following error: \> library(JuliaCall) \> julia \<- ju…

---

## [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…

---

## [In search for a Julia analog of an R's package](https://discourse.julialang.org/t/in-search-for-a-julia-analog-of-an-rs-package/112413)

<div class="topic-metadata">

**Author:** [@vvbond](https://discourse.julialang.org/u/vvbond)\
**Replies:** 4\
**Last updated:** [April 2, 2024, 1:31pm UTC](https://discourse.julialang.org/t/in-search-for-a-julia-analog-of-an-rs-package/112413 "2024-04-02T13:31:44Z")

</div>

My question is motivated by the need for a quick Deming regression computation. In R, it is included in the mcr, Method Comparison Regression, package. Alas, my search for a Julia’s alternative wasn’t successful, despit…

---

## [Compute intensive function rewrite](https://discourse.julialang.org/t/compute-intensive-function-rewrite/102809)

<div class="topic-metadata">

**Author:** [@BioinfoBuggaBoo](https://discourse.julialang.org/u/BioinfoBuggaBoo)\
**Replies:** 2\
**Last updated:** [August 15, 2023, 5:08am UTC](https://discourse.julialang.org/t/compute-intensive-function-rewrite/102809 "2023-08-15T05:08:50Z")

</div>

I have been using a package in R that really only has one main function which does a lot behind the scenes of which a portion is prohibitively slow to the point where the timescales involved are far too long to ever achi…

---

## [Julia equivalent of R's quantile function](https://discourse.julialang.org/t/julia-equivalent-of-rs-quantile-function/102584)

<div class="topic-metadata">

**Author:** [@Sandy45](https://discourse.julialang.org/u/Sandy45)\
**Replies:** 7\
**Last updated:** [August 10, 2023, 5:25am UTC](https://discourse.julialang.org/t/julia-equivalent-of-rs-quantile-function/102584 "2023-08-10T05:25:49Z")

</div>

I am trying to convert R code to Julia and need help on below logic conversion. Currently in R they are trying to process each row in percentile\_to df using for loop by passing arguments to function func\_get\_percentile\_…

---

## [R package JuliaCall does not work with Julia v1.9.1](https://discourse.julialang.org/t/r-package-juliacall-does-not-work-with-julia-v1-9-1/101134)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 3\
**Last updated:** [July 3, 2023, 3:44pm UTC](https://discourse.julialang.org/t/r-package-juliacall-does-not-work-with-julia-v1-9-1/101134 "2023-07-03T15:44:32Z")

</div>

Hello, In order to use the R package JuliaCall, one firstly had to run the command julia\_setup() in R. This command executes some Julia scripts. But it does not work. We get this error: julia\> ENV\["R\_HOME"\] = "C:/Users…

---

## [R JuliaCall erroring during setup with Julia v1.9](https://discourse.julialang.org/t/r-juliacall-erroring-during-setup-with-julia-v1-9/100890)

<div class="topic-metadata">

**Author:** [@Faraz564](https://discourse.julialang.org/u/Faraz564)\
**Replies:** 6\
**Last updated:** [June 27, 2023, 2:34pm UTC](https://discourse.julialang.org/t/r-juliacall-erroring-during-setup-with-julia-v1-9/100890 "2023-06-27T14:34:31Z")

</div>

Would someone help me. My setup is giving error julia\_setup(installJulia = TRUE)

---

## [Extracting model params/equivalent of broom tidiers in julia?](https://discourse.julialang.org/t/extracting-model-params-equivalent-of-broom-tidiers-in-julia/92560)

<div class="topic-metadata">

**Author:** [@jonfoong](https://discourse.julialang.org/u/jonfoong)\
**Replies:** 1\
**Last updated:** [January 6, 2023, 8:13pm UTC](https://discourse.julialang.org/t/extracting-model-params-equivalent-of-broom-tidiers-in-julia/92560 "2023-01-06T20:13:14Z")

</div>

Hi I am new to Julia and am using it to run mixed models since it’s so much faster. However I’ve no experience with Julia and it feels like online support is scarce. I would like help with extracting model parameters but…

---

## [Unable to properly build RCall](https://discourse.julialang.org/t/unable-to-properly-build-rcall/86078)

<div class="topic-metadata">

**Author:** [@aaportel](https://discourse.julialang.org/u/aaportel)\
**Replies:** 1\
**Last updated:** [August 20, 2022, 10:45pm UTC](https://discourse.julialang.org/t/unable-to-properly-build-rcall/86078 "2022-08-20T22:45:36Z")

</div>

I’m attempting to follow these tutorials, but when it comes time to add these packages: BenchmarkTools DataFrames DelimitedFiles CSV XLSX Downloads I get into an error when trying to add the RCall dependancy. I try the…

---

## [Approximating non-standard evaluation like in R, e.g. for plot labels](https://discourse.julialang.org/t/approximating-non-standard-evaluation-like-in-r-e-g-for-plot-labels/41889)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 15\
**Last updated:** [August 10, 2022, 1:55pm UTC](https://discourse.julialang.org/t/approximating-non-standard-evaluation-like-in-r-e-g-for-plot-labels/41889 "2022-08-10T13:55:39Z")

</div>

Sometimes I miss R’s functionality where expressions passed into plotting functions are used as label names. The non-standard evaluation part of it I find pretty confusing actually, i.e. that the expressions are not run …

---

## [Parameter estimation of an ODE in Julia is slower than in R](https://discourse.julialang.org/t/parameter-estimation-of-an-ode-in-julia-is-slower-than-in-r/85114)

<div class="topic-metadata">

**Author:** [@laurar1891](https://discourse.julialang.org/u/laurar1891)\
**Replies:** 25\
**Last updated:** [August 7, 2022, 11:15pm UTC](https://discourse.julialang.org/t/parameter-estimation-of-an-ode-in-julia-is-slower-than-in-r/85114 "2022-08-07T23:15:04Z")

</div>

I’ve been trying to estimate parameters (using max likelihood) of an ODE using the DifferentialEquations and Optim packages in Julia aiming to get a faster convergence compared to R. Problem is that I still can do it fas…

---

## [Community members currently working on writing Bioconductor packages in Julia?](https://discourse.julialang.org/t/community-members-currently-working-on-writing-bioconductor-packages-in-julia/75993)

<div class="topic-metadata">

**Author:** [@BioinfoBuggaBoo](https://discourse.julialang.org/u/BioinfoBuggaBoo)\
**Replies:** 4\
**Last updated:** [March 2, 2022, 2:12am UTC](https://discourse.julialang.org/t/community-members-currently-working-on-writing-bioconductor-packages-in-julia/75993 "2022-03-02T02:12:19Z")

</div>

Hi all, Not sure if this is the right section sorry: I’m looking to get involved with people who may be actively working on writing equivalent packages from Bioconductor in Julia. From my own limited experience R havin…

---

## [How to bind data with plot function?](https://discourse.julialang.org/t/how-to-bind-data-with-plot-function/76164)

<div class="topic-metadata">

**Author:** [@dankelley](https://discourse.julialang.org/u/dankelley)\
**Replies:** 3\
**Last updated:** [February 10, 2022, 2:24pm UTC](https://discourse.julialang.org/t/how-to-bind-data-with-plot-function/76164 "2022-02-10T14:24:58Z")

</div>

This is my first posting here, and I apologize if this is silly. I am quite familiar with R, and a scheme I use there is to compute something and assign it a class, so that I can then define a plot generic. You can see…

---

## [Does Julia have an "invisible" function?](https://discourse.julialang.org/t/does-julia-have-an-invisible-function/76063)

<div class="topic-metadata">

**Author:** [@jamaas](https://discourse.julialang.org/u/jamaas)\
**Replies:** 16\
**Last updated:** [February 9, 2022, 5:54pm UTC](https://discourse.julialang.org/t/does-julia-have-an-invisible-function/76063 "2022-02-09T17:54:20Z")

</div>

I’ve cobbled together a function that will return a password from my gnome keyring, the only problem is that it shows the password on the console when it executes. Does Julia have an “invisible” function, like that of R…

---

## [Implementation of NUTS | Translating Stan model to Julia | JuliaConnectoR](https://discourse.julialang.org/t/implementation-of-nuts-translating-stan-model-to-julia-juliaconnector/74143)

<div class="topic-metadata">

**Author:** [@bernadette-eu](https://discourse.julialang.org/u/bernadette-eu)\
**Replies:** 17\
**Last updated:** [January 12, 2022, 9:53pm UTC](https://discourse.julialang.org/t/implementation-of-nuts-translating-stan-model-to-julia-juliaconnector/74143 "2022-01-12T21:53:47Z")

</div>

Hello, I am a new Julia user, moving from Stan. I am currently working on Bayesian epidemiological modeling. I have worked the @Storopoli tutorial and have successfully implemented posterior sampling with NUTS(), follow…

---

## [Gsub function in Julia](https://discourse.julialang.org/t/gsub-function-in-julia/72351)

<div class="topic-metadata">

**Author:** [@jnewbie](https://discourse.julialang.org/u/jnewbie)\
**Replies:** 1\
**Last updated:** [December 1, 2021, 9:05am UTC](https://discourse.julialang.org/t/gsub-function-in-julia/72351 "2021-12-01T09:05:39Z")

</div>

Hi everyone, I am translating an R code into a Julia code, I have this function in R : for (i in 1:length(l)) { if(length(l\[\[i\]\])\>0){ a ← l\[\[i\]\] y\[i,a+c-1\] ← as.numeric( gsub(“,”,“”, work.matrix\[which(row.names(wo…

---

## ["Skip" parameter XLSX package](https://discourse.julialang.org/t/skip-parameter-xlsx-package/72239)

<div class="topic-metadata">

**Author:** [@jnewbie](https://discourse.julialang.org/u/jnewbie)\
**Replies:** 2\
**Last updated:** [November 30, 2021, 8:04am UTC](https://discourse.julialang.org/t/skip-parameter-xlsx-package/72239 "2021-11-30T08:04:26Z")

</div>

Hi everyone, I am basically “translating” a R code into a Julia code, here is one of the line of the R code : read\_excel(‘Results.xlsx’, sheet = ‘x’, col\_names = FALSE, col\_types = “numeric”, na = “”, skip = 0) To d…

---

## [Utilizing Julia's Speed in R](https://discourse.julialang.org/t/utilizing-julias-speed-in-r/72104)

<div class="topic-metadata">

**Author:** [@HeavyBulb](https://discourse.julialang.org/u/HeavyBulb)\
**Replies:** 15\
**Last updated:** [November 29, 2021, 1:44pm UTC](https://discourse.julialang.org/t/utilizing-julias-speed-in-r/72104 "2021-11-29T13:44:45Z")

</div>

I have a data frame of length 40,000 and a function programmed in R. It takes 20 minutes to iterate through the whole data set with the mapply function that allows to apply a function on each row of a data frame. Would …

---

## [How to simulate the average trajectories of the SDE variables?](https://discourse.julialang.org/t/how-to-simulate-the-average-trajectories-of-the-sde-variables/71378)

<div class="topic-metadata">

**Author:** [@rimi](https://discourse.julialang.org/u/rimi)\
**Replies:** 2\
**Last updated:** [November 12, 2021, 3:47pm UTC](https://discourse.julialang.org/t/how-to-simulate-the-average-trajectories-of-the-sde-variables/71378 "2021-11-12T15:47:34Z")

</div>

Hello, I have a code to solve to SDEs I am working on, in R. The equations in question are, dX = (-X\*a + (Y-X)b + h)dt + g dW and dY = (-Ya + (X-Y)\*b)dt for time \[0,200\], a=0.30, b=0.2, g=1 and h is 1 for time \[50,70\] …

---

## [Things that are easier in Julia than Python/R etc](https://discourse.julialang.org/t/things-that-are-easier-in-julia-than-python-r-etc/69403)

<div class="topic-metadata">

**Author:** [@Derek\_Vetsch](https://discourse.julialang.org/u/Derek_Vetsch)\
**Replies:** 59\
**Last updated:** [October 17, 2021, 8:59pm UTC](https://discourse.julialang.org/t/things-that-are-easier-in-julia-than-python-r-etc/69403 "2021-10-17T20:59:03Z")

</div>

For the past year or so, I’ve been trying to encourage my firm to give Julia a place in our tech stack. Now that the idea has finally gained some traction, I can present a more formal case with some code samples. To tha…

---

## [Jitter R function equivalent in Julia?](https://discourse.julialang.org/t/jitter-r-function-equivalent-in-julia/43457)

<div class="topic-metadata">

**Author:** [@pauloat](https://discourse.julialang.org/u/pauloat)\
**Replies:** 26\
**Last updated:** [August 12, 2021, 2:40am UTC](https://discourse.julialang.org/t/jitter-r-function-equivalent-in-julia/43457 "2021-08-12T02:40:15Z")

</div>

hi, I wanted to know if there’s an equivalent function to R’s jitter() that add noise to a value or vector of values. Thanks you.

---

## [R in Julia, what is the best package?](https://discourse.julialang.org/t/r-in-julia-what-is-the-best-package/65076)

<div class="topic-metadata">

**Author:** [@maoc](https://discourse.julialang.org/u/maoc)\
**Replies:** 4\
**Last updated:** [July 22, 2021, 12:40am UTC](https://discourse.julialang.org/t/r-in-julia-what-is-the-best-package/65076 "2021-07-22T00:40:07Z")

</div>

What is the best way to introduce the R language in Julia? I looked for some alternatives and found a package called RCall.jl Are there any other options (maybe better) than this package?

---

## [I can't load RDatasets in Julia](https://discourse.julialang.org/t/i-cant-load-rdatasets-in-julia/56568)

<div class="topic-metadata">

**Author:** [@Apoorva-Bhatt](https://discourse.julialang.org/u/Apoorva-Bhatt)\
**Replies:** 2\
**Last updated:** [March 7, 2021, 9:06am UTC](https://discourse.julialang.org/t/i-cant-load-rdatasets-in-julia/56568 "2021-03-07T09:06:33Z")

</div>

On doing Iris = dataset(“datasets”, “iris”), I get the following error - Iris UndefVarError: load not defined action(::Symbol, ::Array{Union{Base.PkgId, Module},1}, ::FileIO.Formatted; options::Base.Iterators.Pairs{Un…

[Next page](https://discourse.julialang.org/tag/r/430.md?match_all_tags=true&page=1&tags%5B%5D=r)
