Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error happens when you try to execute command ENV["R_HOME"] #491

Open
Faraz564 opened this issue Jun 16, 2023 · 4 comments
Open

Error happens when you try to execute command ENV["R_HOME"] #491

Faraz564 opened this issue Jun 16, 2023 · 4 comments

Comments

@Faraz564
Copy link

I am running model in Julia and last time I updated R studio after that i am having this problem written below.

Julia version 1.8.2 at location C:\Users\mct\AppData\Local\Programs\JULIA-1.2\bin will be used. Loading setup script for JuliaCall... Error during julia setup, try to install RCall, Suppressor and DynACof in a Julia terminal: using Pkg; Pkg.add(["RCall","Suppressor","DynACof"]) Then pre-compile DynACof in Julia using this command:using DynACof Here's the original error message from JuliaCall::julia_setup: Error happens when you try to execute command ENV["R_HOME"] = "C:/PROGRA1/R/R-431.0";Base.include(Main,"C:/Users/mct/AppData/Local/R/win-library/4.3/JuliaCall/julia/setup.jl") in Julia. To have more helpful error messages, you could considering running the command in Julia directlyJulia version 1.8.2 at location C:\Users\mct\AppData\Local\Programs\JULIA-1.2\bin will be used. Loading setup script for JuliaCall... Error in .julia$cmd(paste0(Rhomeset, "Base.include(Main,"", system.file("julia/setup.jl", : Error happens when you try to execute command ENV["R_HOME"] = "C:/PROGRA1/R/R-431.0";Base.include(Main,"C:/Users/mct/AppData/Local/R/win-library/4.3/JuliaCall/julia/setup.jl") in Julia. To have more helpful error messages, you could considering running the command in Julia directly

Please If you know the solution write down it here.

@palday
Copy link
Collaborator

palday commented Jun 17, 2023

This seems like a JuliaCall issue.

@Faraz564
Copy link
Author

Yes. You are right. I not able to run the following syntax
JuliaCall::julia_command("a= 1+1")
Creat error as following..
Error happens when you try to execute command ENV["R_HOME"] = "C:/PROGRA1/R/R-431.1";Base.include(Main,"C:/Users/PC/AppData/Local/R/win-library/4.3/JuliaCall/julia/setup.jl") in Julia.

@Faraz564
Copy link
Author

I am new to julia. How to resolve issue with JuliaCall. This is not running in R studio. I using Julia in R studio.

@palday
Copy link
Collaborator

palday commented Jun 20, 2023

This seems like a JuliaCall issue, not an RCall issue. JuliaCall uses RCall internally, but is a separate entity: https://github.com/Non-Contradiction/JuliaCall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants