Articles by Roman Luštrik

Pin package versions in your production Docker image

June 25, 2020 | 0 Comments

Using package in R is easy. You install from CRAN using install.packages("packagename"), it resolves dependencies and you're good to go. What R natively doesn't handle so well is installing a particular package version without jumping through hoops. Technically you need the source file of the package version you ... [Read more...]

Vectorizing functions in R is easy

April 16, 2019 | 0 Comments

Imagine you have a function that only takes one argument, but you would really like to work on a vector of values. A short example on how function Vectorize() can accomplish this. Let's say we have a data.frame xy [Read more...]

Vectorizing functions in R is easy

April 16, 2019 | 0 Comments

Imagine you have a function that only takes one argument, but you would really like to work on a vector of values. A short example on how function Vectorize() can accomplish this. Let's say we have a data.frame xy [Read more...]

How I implemented googleSignIn in R (shiny) and lived

March 15, 2019 | 0 Comments

Known user identity when building shiny apps can sometimes come really handy. While you can implement your own user login, for instance using cookies, you can also use some of the services which authenticate a user for you, such as Google. This way, yo...
[Read more...]

How I implemented googleSignIn in R (shiny) and lived

March 15, 2019 | 0 Comments

Known user identity when building shiny apps can sometimes come really handy. While you can implement your own user login, for instance using cookies, you can also use some of the services which authenticate a user for you, such as Google. This way, yo... [Read more...]

How to authenticate using OAuth2 through R

January 19, 2019 | 0 Comments

If you need to have authentication of users in your application, you could invent the proverbial warm water by implementing register, login, logout and other features. Or, you could outsource part of that functionality to well established establishments such as Google, Facebook, Github and other. In addition to knowing the ... [Read more...]

How to authenticate using OAuth2 through R

January 19, 2019 | 0 Comments

If you need to have authentication of users in your application, you could invent the proverbial warm water by implementing register, login, logout and other features. Or, you could outsource part of that functionality to well established establishments such as Google, Facebook, Github and other. In addition to knowing the ... [Read more...]

Point arrows to specific parts of the data

April 13, 2018 | 0 Comments

tl;dr: Point arrows at your line at defined datum points. Sometimes to really enhance your picture you need to point at some stuff. Here is a script which will plot vertical lines to show events in your datum plot. library(ggplot2) # This script will draw points to parts of (... [Read more...]

Point arrows to specific parts of the data

April 13, 2018 | 0 Comments

tl;dr: Point arrows at your line at defined datum points. Sometimes to really enhance your picture you need to point at some stuff. Here is a script which will plot vertical lines to show events in your datum plot. library(ggplot2) # This script will draw points to parts of (... [Read more...]

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)