Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/armgong/rjulia
R package which integrating R and Julia
https://github.com/armgong/rjulia
Last synced: 18 days ago
JSON representation
R package which integrating R and Julia
- Host: GitHub
- URL: https://github.com/armgong/rjulia
- Owner: armgong
- License: gpl-2.0
- Created: 2014-04-08T09:25:31.000Z (over 10 years ago)
- Default Branch: julia0.5
- Last Pushed: 2017-10-20T17:08:34.000Z (about 7 years ago)
- Last Synced: 2024-08-01T00:38:00.831Z (3 months ago)
- Language: C
- Homepage:
- Size: 765 KB
- Stars: 144
- Watchers: 21
- Forks: 23
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
rjulia
===============rjulia provides an interface between R and Julia. It allows a user to run a script in Julia from R, and maps objects between the two languages.
It currently supports use on Linux and Windows (both R and RGUI), but build on Windows only for advance users.
Installing
-------------1. Install julia v0.5 and R version >=3.1.0.
2. Add `/bin` to your system PATH variable if needed.3. Install the rjulia package. If you're using the v0.4 branch of julia, use the "julia0.4" branch of rjulia.
You can install rjulia on Linux using the devtools package:
```r
install.packages("devtools") #if not already installed
devtools::install_github("armgong/rjulia", ref="julia0.5")# or ref="julia0.4" if using Julia v0.5
```
You can install rjulia on Windows using the Rtools and devtools package :```r
install.packages("devtools") #if not already installed
devtools::install_github("armgong/rjulia", ref="master", args = "--no-multiarch")# or ref="0.3" if using Julia v0.3
```
4. If you want to be able to use R or Julia objects that contain NA values or factors or data frames, the Julia packages `DataArrays` and `DataFrames` must be installed.Simple example
-------------```r
library(rjulia)
julia_init() #**(will auto find your julia home)**
julia_eval("1+1")
```Demo
-------------Please see the `*.R` files in the `demo/` directory, or use
```r
demo(package = "rjulia")
```Docs
-------------
Help files are now done, mostly with examples.Know Problems
-------------
* The Julia api rapidly changes between releases. Each time you upgrade or downgrade Julia, rjulia needs to be recompiled and reinstalled, e.g. with `devtools::install_github`.* Due to RStudio issue (https://github.com/armgong/rjulia/issues/16), when using rjulia on Windows 64bit, RStudio-0.98.1103 is recommended http://download1.rstudio.org/RStudio-0.98.1103.zip .
* Due to gcc toolchain issue , when using rjulia on Windows, it will crash R, to solve this, download unoffical build julia from https://github.com/armgong/julia-64-build-with-mingw-builds-for-R .