Best Best Practices Ever!

Posted on February 13, 2013 by Jonathan Callahan

Every once in a while I read something that is so insightful, so clearly written and so well documented that it enters my own personal pantheon of “Best Ever” documents. I recently added a new, simply divine article titled Best Practices for Scientific Computing and hope that everyone reading this post also takes the time to read that article. I’m including the outline here only to encourage you to read the article in it’s entirety.  It is extremely well written.   read more …

Posted in Toolbox | Tagged best practices | Leave a comment

Using R — Package Installation Problems

Posted on February 12, 2013 by Jonathan Callahan
This entry is part 4 of 11 in the series Using R

The post titled Installing Packages described the basics of package installation with R.  The process is wonderfully simple when everything goes well.  But it can be maddening when it does not.  Error messages give a hint as to what went wrong but do not necessarily tell you how to resolve the problem.  This post will collect some of the error messages we’ve encountered while installing R packages and describe the reasons for the error and the workarounds we’ve found.   read more …

Posted in R | Tagged R, R package | 1 Comment

Using R — Packaging a C library in 15 minutes

Posted on November 17, 2012 by Jonathan Callahan
This entry is part 9 of 11 in the series Using R

Yes, this post condenses 50+ hours of learning into a 15 minute tutorial.  Read ‘em and weep.  (That is, you read while I weep.)   read more …

Posted in R | Tagged C, C library, R package | 3 Comments

Using R — Callling C code with Rcpp

Posted on November 12, 2012 by Jonathan Callahan
This entry is part 7 of 11 in the series Using R

In two previous posts we described how R can call C code with .C() and the more complex yet more robust option of calling C code with .Call().  Here we will describe how the Rcpp package can be used to greatly simplify your C code without forcing you to become expert in C++.   read more …

Posted in R | Tagged C, R, Rcpp | 3 Comments

Using R — .Call(“hello”)

Posted on November 10, 2012 by Jonathan Callahan
This entry is part 10 of 11 in the series Using R

In an introductory post on R APIs to C code, Calling C Code ‘Hello World!’, we explored the .C() function with some ‘Hello World!’ baby steps.  In this post we will make a leap forward by implementing the same functionality using the .Call() function.   read more …

Posted in R | Tagged C, R | 2 Comments