Assuming rJava is installed and works, it is possible to take advantage of its magic to get the path where java is installed: $ Rscript --default-packages="methods,rJava" -e ".jinit(); .jcall( 'java/lang/System', 'S', 'getProperty', 'java.home' )...
Assuming rJava is installed and works, it is possible to take advantage of its magic to get the path where java is installed: $ Rscript --default-packages="methods,rJava" -e ".jinit(); .jcall( 'java/lang/System', 'S', 'getProperty', 'java.home' )...
This is a post in the series Mixing R CMD build and ant. Previous posts have shown how to compile the java code that lives in the src directory of a package and how to document this code using javadoc. This post tackles the problem of unit testin...
As indicated in this thread, completion after the dollar operator can be customized by defining a custom names method. Here I am showing how to take advantage of this to display fields and methods of java references (jobjRef objects from the rJava ...
This is a really simple code snippet that shows how to get the list of CRAN packages and their titles from the html page html page (toulouse mirror in this example). ... Note that R has the available.packages function, but it does not give th...
pre{ border: 1px solid black; font-family: "Courier New" !important; font-size: xx-small !important; } The parser package has been released to CRAN, the package mainly defines a function parser that is similar to the usual R function parse, w...
This post is motivated by this question on R-help. This is a simple java class that sends files through Rserve using the classes RFileInputStream and RFileOutputStream Then we create a simple file on the client machine: $ cat > testfile.tx...
I've started the process of moving the content of this page to the R wiki. The motivation is that the content will become dynamic and updated much more often, people can add their own project, we can have use cases of each gui, tutorials, feature c...
I've pushed my slides from the presentation I've given at useR! a few minutes ago here