Blog Archives

A primer in using Java from R – part 2

July 7, 2018
By
A primer in using Java from R – part 2

Introduction In this part of the primer we discuss creating and using custom .jar archives within our R scripts and packages, handling of Java exceptions from R and a quick look at performance comparison between the low and high-level interfaces provided by rJava. In the first part we talked about using the rJava package to create objects, call methods and work...

Read more »

A primer in using Java from R – part 1

June 23, 2018
By
A primer in using Java from R – part 1

Introduction This primer shall consist of two parts and its goal is to provide a walk-through of using resources developed in Java from R. It is structured as more of a “note-to-future-self” rather than a proper educational article, I however hope that some readers may still find it useful. It will also list a set of references that I found...

Read more »

R:case4base – data aggregation with base R

June 9, 2018
By
R:case4base – data aggregation with base R

Introduction In the previous articles of the R:case4base series we discussed and learned how to reshape data with base R to a form that is practical for our use and how to subset data to get the relevant parts of it with base R. In this one, we will look at aggregation techniques using base R’s stats::aggregate generic function, focusing on the method...

Read more »

RStudio:addins part 3 – View objects, files, functions and more with 1 keypress

May 26, 2018
By
RStudio:addins part 3 – View objects, files, functions and more with 1 keypress

Introduction In this post in the RStudio:addins series we will try to make our work more efficient with an addin for better inspection of objects, functions and files within RStudio. RStudio already has a very useful View function and a Go To Function / File feature with F2 as the default keyboard shortcut and yes, I know I promised automatic...

Read more »

RStudio:addins part 2 – roxygen documentation formatting made easy

May 12, 2018
By
RStudio:addins part 2 – roxygen documentation formatting made easy

Introduction Code documentation is extremely important if you want to share the code with anyone else, future you included. In this second post in the RStudio:addins series we will pay a part of our technical debt from the previous article and document our R functions conveniently using a new addin we will build for this purpose. The addin we will create...

Read more »

RStudio:addins part 1. – code reproducibility testing

May 5, 2018
By
RStudio:addins part 1. – code reproducibility testing

Contents Introduction Prerequisites and recommendations Step 1 - Creating a package Step 2 - Writing the first functions Step 3 - Setting up an addin Step 4 - Updating our DESCRIPTION and NAMESPACE What is next - Always paying our (technical) debts Wrapping up TL;DR - Just give me the package References Introduction This is the first post in the RStudio:addins series. The aim of the series is to walk the...

Read more »

Search R-bloggers


Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)