Shige's Research Blog

Sunday, June 21, 2015

SageMathCloud

SageMathCloud provides a cloud computation platform for Julia, Python and R. It looks useful, at least for teaching purpose. It does not, however, seem to to allow the users to install third-party packages. Given that one big attraction of R comes from its huge package ecosystem, this can potentially be a problem for serious usage.

Friday, June 19, 2015

Thursday, June 18, 2015

Nimble

Just discovered this little package for Bayesian analysis. I think it is on the right direction. I hope it handle discrete parameters better than Stan.

Sunday, June 14, 2015

How to use SparkR within Rstudio?

Setting up Spark and SparkR is quite easy (assume you are running v.1.4): just grab one of the pre-built binaries and unzip to a folder. There is also a shell script to start SparkR from command line. The document suggest to put the following lines

Sys.setenv(SPARK_HOME="/home/shige/bin/spark")
.libPaths(c(file.path(Sys.getenv("SPARK_HOME"), "R", "lib"), .libPaths()))
library(SparkR)
sc <- sparkR.init(master="local")

into the .Rprofile file. This, however, has the undesirable side effect of adding yet another directory to which R packages can be installed.

My solution is:

1. Create a soft link of the SparkR directory in the the directory where other R packages are installed (ln -s /home/shige/bin/spark/R/lib/SparkR /home/shige/R/x86_64-pc-linux-gnu-library/3.2)
2. Add only one line (Sys.setenv(SPARK_HOME="/home/shige/bin/spark")) to the .Rprofile file.

All set.

Saturday, June 13, 2015

SparkR

The SparkR project integrates R and Spark for big data processing. It looks very promising.

Wednesday, June 10, 2015

SEM DiagrammeR

The "sem" package makes use of the "DiagrammeR" package to draw path diagram, very cool!

Sunday, June 07, 2015

A new GTK theme

The paper theme looks really nice.

Rstudio supports Chinese input

Not so long ago, Rstudio did not fully support Chinese characters. The server version seemed fine but the desktop version did not. Now, with the new official version of 0.99.441, the support for Chinese input is complete.

Counter