Regular Expression in R

Posted on Nov 14, 2012 in Programming • Tagged with R, regex, programming, CRAN, regular expression

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

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

There are two flavors …


Continue reading

Install R Kernel for JupyterLab

Posted on Dec 25, 2016 in Programming • Tagged with programming, R, CRAN, IRKernel, Jupyter, JupyterLab

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

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

  1. Install JupyterLab.
wajig install …

Continue reading

Develop R Packages Using "roxygen2"

Posted on Jun 27, 2012 in Programming • Tagged with R, package, programming, tags, CRAN, roxygen2, develop

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

You have to install the R package roxygen2 first.

install.packages('roxygen2')

Roxygenize the package for compiling.

library(roxygen2)
roxygenize(path_to_package)

The following are some roxygen2 tags …


Continue reading

Zero-length Vector Issue in R

Posted on Apr 10, 2017 in Programming • Tagged with programming, CRAN, R, issue, trick, trap, vector, zero-length, 0-length

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

The corner case of 0-length vectors is not well considered in R. It causes issues in several situations. First, 1:n is probably not what you want …


Continue reading

Traps in R

Posted on Nov 09, 2012 in Programming • Tagged with R, global variable, programming, traps, 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. Zero-Length Vector Issue in R

  2. A really tricky problem about is global and local variables. You can use any global variable in a user-defined function, which is …


Continue reading

R Markdown Tips

Posted on Jun 09, 2016 in Programming • Tagged with programming, CRAN, R Markdown, Markdown, R

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

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

RMarkdown Reference

  1. The rmarkdown …


Continue reading