Write R Code that Runs Faster

Posted on Jun 26, 2012 in Programming • Tagged with DLL, programming, HPC, high performance computing, parallel, R, memory, GC, speedup, fast, CRAN

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

R is a popular statistical software which is famous for enormous amout of packages. The syntax of R is very flexible with make it convenient at the …


Continue reading

R for Internet/Web Applications

Posted on Nov 14, 2012 in Programming • Tagged with email, R, Web, programming, network, internet, CRAN

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

Sending/Receiving Emails

  1. There are many ways to send email in R. First, you can use sendmail{sendmailR}. The following code is a simple test email.

    sendmail …

Continue reading

Keep Matrix Structure when Extract a Row/Column from a Matrix

Posted on Aug 14, 2012 in Programming • Tagged with programming, data structure, algebra, matrix, R, vector, CRAN

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

I talked in the post Abuse of Vector in R that it is often the case that we want keep the matrix sturcture when extracting a row …


Continue reading

Easy Made Mistakes when Writing R code

Posted on Jun 14, 2012 in Programming • Tagged with vector, operator, mistake, programming, R, CRAN

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

Being flexible is a two-side sword to R. While it make it convenient and productive to use R, it is also very easy to make mistakes when …


Continue reading

Skills for R

Posted on Nov 14, 2012 in Programming • Tagged with R, skills, programming, CRAN

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

  1. Unlike C/C++, Java and SAS, you do not have semicolon to indicate the end of a command, but you can do this if you like. It …


Continue reading

How to Submit R Packages to CRAN

Posted on Jun 03, 2012 in Programming • Tagged with R, ftp, sftp, programming, submit, package, CRAN

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

Submit using web form or using ftp following the steps below.

  1. Upload the .tar.gz file using anonymous as log-in name and your e-mail address as password …


Continue reading