Posts

Showing posts with the label R

Setting up googleAnalyticsR on Google Cloud Platform's Compute Engine

When it comes to using Google Analytics data in R, you have quite a number of packages to work with. One such package that has seen recent, frequent updates is googleAnalyticsR , written by Mark Edmondson. googleAnalyticsR works great when you're running it in your own script. But when you need to use it on a remote server, for example, to generate scheduled reports, you may find yourself jumping through hoops and hurdles just to set this up, particularly with authorization. Here's a guide based on my experience of setting up googleAnalyticsR on a Google Cloud Platform (GCP) Compute Engine instance. It covers all the required setup steps, from software installation to authorization to running a quick test. How to setup googleAnalyticsR on a Google Cloud Platform Compute Engine instance Setup a Compute Engine instance The bare minimum specifications for your Compute Engine instance should be: n1-standard-1, i.e. 1 vCPU with 3.75GB memory 10GB boot disk running the ...

Setting up R Studio Server on Google Compute Engine

Image
For many data scientists, R is a must-have tool for running all kinds of data analyses. And many of them would prefer to use R Studio Server to take advantage of server-level machine specifications (e.g. access more RAM memory than a desktop computer would provide) and allow for collaboration with colleagues and peers. The good people at rocker-org can help you get up and running with R Studio Server using a Docker container . But if you want to setup R Studio Server from scratch on Google Compute Engine, then you can follow this guide. Recipe to run R Studio Server on Google Compute Engine (with screenshots) Set up a Compute Engine VM instance in Google Cloud. Install R Studio Server. Create users and groups. This recipe assumes that you have a Google Cloud account already. If not, create one with billing enabled. Then create a project, if one hasn't been created automatically. 1. Set up a Compute Engine VM instance in Google Cloud Actually, before setting up the V...