Blog Archives

RStudio:addins part 5 – Profile your code on keypress in the background, with no dependencies.

August 4, 2018
By
RStudio:addins part 5 – Profile your code on keypress in the background, with no dependencies.

Introduction Profiling our code is a very useful tool to determine how well the code performs on different metrics. The addin we will create in this article will let us use a keyboard shortcut to run profiling on R code selected in RStudio without blocking the session or requiring any external packages. Specifically for very simple overview use, it may be beneficial...

Read more »

RStudio:addins part 5 – Profile your code on keypress in the background, with no dependencies

August 4, 2018
By
RStudio:addins part 5 – Profile your code on keypress in the background, with no dependencies

Introduction Profiling our code is a very useful tool to determine how well the code performs on different metrics. The addin we will create in this article will let us use a keyboard shortcut to run profiling on R code selected in RStudio without blocking the session or requiring any external packages. Specifically for very simple overview use, it may be beneficial...

Read more »

RStudio:addins part 4 – Unit testing coverage investigation and improvement, made easy

July 21, 2018
By
RStudio:addins part 4 – Unit testing coverage investigation and improvement, made easy

Introduction A developer always pays his technical debts! And we have a debt to pay to the gods of coding best practices, as we did not present many unit tests for our functions yet. Today we will show how to efficiently investigate and improve unit test coverage for our R code, with focus on functions governing our RStudio addins, which...

Read more »

RStudio:addins part 4 – Unit testing coverage investigation and improvement, made easy

July 21, 2018
By
RStudio:addins part 4 – Unit testing coverage investigation and improvement, made easy

Introduction A developer always pays his technical debts! And we have a debt to pay to the gods of coding best practices, as we did not present many unit tests for our functions yet. Today we will show how to efficiently investigate and improve unit test coverage for our R code, with focus on functions governing our RStudio addins, which...

Read more »

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 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 »

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 »

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 »

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)