Skip to content

yutannihilation/RRustFib

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
man
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

Fibonacci Calculator by Rust

Prelude

They say that using Rust from Ruby is fast: http://qiita.com/rejasupotaro/items/2aa57a67f4a97101950c

What about R?

Prerequisite

Install necessary packages:

And, of cource, install Rust:

RAutoGenRunTime

This can be installed by devtools::install_url().

devtools::install_url("http://www.omegahat.org/RAutoGenRunTime/RAutoGenRunTime_0.3-1.tar.gz")

Rffi

Rffi can be installed by the same way.

devtools::install_url("http://www.omegahat.org/Rffi/Rffi_0.3-0.tar.gz")

But, I coundn't install this into my Windows... So, I did create a repo for Windows: https://github.com/yutannihilation/Rffi.

devtools::install_github("yutannihilation/Rffi")

Usage

library(RRustFib)
fib(40L)

About

Rust Fibonacci Calculator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published