ThinkToStartR package


I just started to work on my new package for this blog. This R package will include the code of all my tutorials and will make it accessible with easy function calls.


To install the ALPHA version of the package open up R and use:

require(devtools) #install if necessary (install.packages("devtools")




In this first ALPHA version the package just includes some functions.

You can call the functions with the ThinkToStart function:

ThinkToStart(FUNCTIONNAME, ... additional parameters)

Twitter Sentiments Wordcloud:


Now you can create a sentiment cloud with:

ThinkToStart("SentimentCloud","iphone",30,"YOUR DATUMBOX API KEY")

Foursquare Checkin Map:

token <-ThinkToStart("Foursquare_auth",app_name="R_Test",app_id="XXX",app_secret="XXX")

map <- ThinkToStart("Foursquare_map",token)


7 thoughts on “ThinkToStartR package

  1. Pingback: Create Twitter Wordcloud with Sentiments | julianhi's Blog

  2. Pingback: Visualize Your Foursquare Check-ins with R | julianhi's Blog

  3. I am having problems installing your package.

    When I run the ‘install_github(“ThinkToStartR”,username=”JulianHill”)’ command I get the following output:
    Installing github repo ThinkToStartR/master from JulianHill
    Downloading from
    Installing package from /var/folders/wg/jvbvbdnx0vx8v752pw64l9yw0000gp/T//RtmptGj1KN/
    arguments ‘minimized’ and ‘invisible’ are for Windows only
    Installing ThinkToStartR
    ‘/Library/Frameworks/R.framework/Resources/bin/R’ –vanilla CMD INSTALL \
    ‘/private/var/folders/wg/jvbvbdnx0vx8v752pw64l9yw0000gp/T/RtmptGj1KN/devtools2d004db15f48/ThinkToStartR-master’ \
    –library=’/Users/sayle/R-dev’ –install-tests

    * installing *source* package ‘ThinkToStartR’ …
    ** R
    ** preparing package for lazy loading
    Installing package into ‘/Users/sayle/R-dev’
    (as ‘lib’ is unspecified)
    Error in contrib.url(repos, “source”) :
    trying to use CRAN without setting a mirror
    Error : unable to load R code in package ‘ThinkToStartR’
    ERROR: lazy loading failed for package ‘ThinkToStartR’
    * removing ‘/Users/sayle/R-dev/ThinkToStartR’
    Error: Command failed (1)

    I am running it in RStudio on a Mac if that helps.


      • Here is my Version() info:
        [1] “x86_64-apple-darwin13.1.0”

        [1] “x86_64”

        [1] “darwin13.1.0”

        [1] “x86_64, darwin13.1.0”

        [1] “”

        [1] “3”

        [1] “1.0”

        [1] “2014”

        [1] “04”

        [1] “10”

        $`svn rev`
        [1] “65387”

        [1] “R”

        [1] “R version 3.1.0 (2014-04-10)”

        [1] “Spring Dance”

  4. Pingback: Visualize Your Foursquare Check-ins with R - ThinkToStart

  5. Pingback: Create Twitter Wordcloud with Sentiments - ThinkToStart

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s