Tag Archives: R

tinytest 1.2.4 is on CRAN

Version 1.2.4 of tinytest arrived on CRAN at 17 December 2020. This release has a couple of new features. You can specify the library location in test_package with lib.loc. New function expect_inherits() to check the class of an object - … Continue reading

Posted in programming, R | Tagged , , | Leave a comment

How to set library path on a {parallel} R cluster

In R you can add extra library locations (directories where your packages are installed) with the .libPaths() function. For example, to add "~/my/lib", you can do libs <- c("~/my/lib", .libPaths()) libPaths(new = libs) If you want to set library locations … Continue reading

Posted in programming, R | Tagged , , | Leave a comment

Author with affiliation in bookdown: HTML and pdf

If you are using Yihui Xie's bookdown package, it is quite easy to add authors and affiliations for HTML output. You only need to put the following pandoc options in the header of index.Rmd. author: - name: John Doe email: … Continue reading

Posted in programming, R | Tagged , , | Leave a comment

validate 1.0.1: new features and a cookbook

Version 1.0.1 of our validate package has arrived on CRAN on 2020-12-08. At the same time, a complete Data Validation Cookbook has been published online, and is also included with the package as a vignette. The new features of validate … Continue reading

Posted in programming, R | Tagged , , , | Leave a comment

lumberjack 1.2.0 is on CRAN and paper accepted by JSS

lumberjack is a package that allows you to track (log) changes in data while an R script is running. This allows you to detect exactly which code had what effect on your data. The only thing you have to do … Continue reading

Posted in programming, R | Tagged , , , , , | Leave a comment

tinytest 1.2.0 is on CRAN

tinytest is a relatively new, light-weight (no-dependency) but full-featured unit testing framework for R. It is currently used by 60+ packages, including the famous Rcpp package. The latest version of tinytest was accepted by CRAN on 5 May 2020. This … Continue reading

Posted in programming, R | Tagged , , | Leave a comment

lintools 0.1.3 is on CRAN

Version 0.1.3 of the lintools package was accepted on CRAN today. This version brings a few internal improvements and switches the testing suite to the tinytest test infrastructure. lintools is provides basic manipulations of linear systems of equalities and inequalities … Continue reading

Posted in programming, R, Uncategorized | Tagged , | Leave a comment

Make your package spherical

Larger packages typically consist of functions that are visible to the users (exported functions) and functions that are used by the exported functions, but that are invisible to the user. For example: # exported, user-visible function inch2cm <- function(x){ x*conversion_factor("inch") … Continue reading

Posted in programming, R, Uncategorized | Tagged , | Leave a comment

Checking reverse dependencies: the tiny way

The tools package that comes with base R makes checking reverse dependencies super easy. Build your package tarball (the pkg_x.y.z.tar.gz file). R CMD build /your/package/location It is a good idea to make sure that the tarball is in a dedicated … Continue reading

Posted in programming, R | Tagged , , , | Leave a comment

uRos2019: tutorials, keynote speakers, registration and call for papers!

The 7th use of R in Official Statistics conference is the event for all things R in the production and use of government statistics. The 7th installment of this conference will take place from 20 to 21 May 2019 at … Continue reading

Posted in R | Tagged , , , | Leave a comment