***ALPHA***
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.
Install
To install the ALPHA version of the package open up R and use:
require(devtools) #install if necessary (install.packages("devtools") dev_mode(on=T) install_github("ThinkToStartR",username="JulianHill",subdir="ThinkToStartR")
Usage
In this first ALPHA version the package just includes some functions.
You can call the functions with the ThinkToStart function:
ThinkToStart(FUNCTIONNAME, ... additional parameters)
library(ThinkToStart) ThinkToStart("TwitterAuth",api_key="yourAPIKEY",api_secret="yourAPISECRET")
Now you can create a sentiment cloud with:
ThinkToStart("SentimentCloud","iphone",30,"YOUR DATUMBOX API KEY")
token <-ThinkToStart("Foursquare_auth",app_name="R_Test",app_id="XXX",app_secret="XXX") map <- ThinkToStart("Foursquare_map",token)
Pingback: Create Twitter Wordcloud with Sentiments | julianhi's Blog
Pingback: Visualize Your Foursquare Check-ins with R | julianhi's Blog
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 master.zip from https://github.com/JulianHill/ThinkToStartR/archive/master.zip
Installing package from /var/folders/wg/jvbvbdnx0vx8v752pw64l9yw0000gp/T//RtmptGj1KN/master.zip
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.
Thanks,
Sayle
Hey,
What R Version are you running?
Regarda
Here is my Version() info:
$platform
[1] “x86_64-apple-darwin13.1.0”
$arch
[1] “x86_64”
$os
[1] “darwin13.1.0”
$system
[1] “x86_64, darwin13.1.0”
$status
[1] “”
$major
[1] “3”
$minor
[1] “1.0”
$year
[1] “2014”
$month
[1] “04”
$day
[1] “10”
$`svn rev`
[1] “65387”
$language
[1] “R”
$version.string
[1] “R version 3.1.0 (2014-04-10)”
$nickname
[1] “Spring Dance”
Pingback: Visualize Your Foursquare Check-ins with R - ThinkToStart
Pingback: Create Twitter Wordcloud with Sentiments - ThinkToStart