diff --git a/docs.it4i/salomon/software/numerical-languages/r.md b/docs.it4i/salomon/software/numerical-languages/r.md index a3511b3795a499c27c7ba62529e4141776870409..6df515adad043a581ce3da7855737194b1c250ae 100644 --- a/docs.it4i/salomon/software/numerical-languages/r.md +++ b/docs.it4i/salomon/software/numerical-languages/r.md @@ -85,7 +85,7 @@ $ R More information and examples may be obtained directly by reading the documentation available in R -```console +```r > ?parallel > library(help = "parallel") > vignette("parallel") @@ -102,7 +102,7 @@ The forking is the most simple to use. Forking family of functions provide paral Forking example: -```cpp +```r library(parallel) #integrand function @@ -165,7 +165,7 @@ Static Rmpi programs are executed via mpiexec, as any other MPI programs. Number Static Rmpi example: -```cpp +```r library(Rmpi) #integrand function @@ -221,7 +221,7 @@ Dynamic Rmpi programs are executed by calling the R directly. OpenMPI module mus Dynamic Rmpi example: -```cpp +```r #integrand function f <- function(i,h) { x <- h*(i-0.5) @@ -299,7 +299,7 @@ Execution is identical to other dynamic Rmpi programs. mpi.apply Rmpi example: -```cpp +```r #integrand function f <- function(i,h) { x <- h*(i-0.5)