.libPaths( c( .libPaths(), "~/usr/local/lib/R/site-library") )

install.packages("jsonlite",  repos = "http://cran.us.r-project.org")
install.packages("curl", repos = "http://cran.us.r-project.org")
install.packages("reshape2", repos = "http://cran.us.r-project.org")
install.packages("ggplot2", repos = "http://cran.us.r-project.org")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
The downloaded source packages are in
	‘/tmp/Rtmp7VQurm/downloaded_packages’
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
The downloaded source packages are in
	‘/tmp/Rtmp7VQurm/downloaded_packages’
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning message:
In install.packages("http://cran.r-project.org/src/contrib/Archive/dplyr/dplyr_0.4.1.tar.gz", : installation of package ‘/tmp/Rtmp7VQurm/downloaded_packages/dplyr_0.4.1.tar.gz’ had non-zero exit statusInstalling package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
The downloaded source packages are in
	‘/tmp/Rtmp7VQurm/downloaded_packages’
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
The downloaded source packages are in
	‘/tmp/Rtmp7VQurm/downloaded_packages’
install.packages("assertthat",  repos = "http://cran.us.r-project.org")
install.packages("magrittr",  repos = "http://cran.us.r-project.org")
install.packages("lazyeval",  repos = "http://cran.us.r-project.org")
install.packages("BH",  repos = "http://cran.us.r-project.org")
install.packages("R6",  repos = "http://cran.us.r-project.org")
install.packages("http://cran.r-project.org/src/contrib/Archive/dplyr/dplyr_0.4.1.tar.gz", repos=NULL,  repos = "http://cran.us.r-project.org")
install.packages("tidyr",  repos = "http://cran.us.r-project.org")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
The downloaded source packages are in
	‘/tmp/Rtmp7VQurm/downloaded_packages’
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
The downloaded source packages are in
	‘/tmp/Rtmp7VQurm/downloaded_packages’
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
The downloaded source packages are in
	‘/tmp/Rtmp7VQurm/downloaded_packages’
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
The downloaded source packages are in
	‘/tmp/Rtmp7VQurm/downloaded_packages’
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
The downloaded source packages are in
	‘/tmp/Rtmp7VQurm/downloaded_packages’
Error in install.packages("http://cran.r-project.org/src/contrib/Archive/dplyr/dplyr_0.4.1.tar.gz", : formal argument "repos" matched by multiple actual arguments
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning message:
: dependency ‘dplyr’ is not availablealso installing the dependency ‘stringi’

Warning message:
In install.packages("tidyr", repos = "http://cran.us.r-project.org"): installation of package ‘tidyr’ had non-zero exit status
The downloaded source packages are in
	‘/tmp/Rtmp7VQurm/downloaded_packages’
library(jsonlite)
library(tidyr)
library(reshape2)
library(ggplot2)
Error in library(tidyr): there is no package called ‘tidyr’
document <- fromJSON("http://labels.wmflabs.org/campaigns/enwiki/4/?tasks")
revs_id<- document$tasks$data$rev_id
damagings<- sapply(1:20000, function(x) document$tasks$labels[[x]]$data$damaging)
df<-as.data.frame(cbind(revs_id, damagings))
dfFalse<-select(filter(df, damagings!="TRUE"), revs_id)
dfTrue<-select(filter(df, damagings=="TRUE"), revs_id)
Error in eval(expr, envir, enclos): could not find function "select"
Error in eval(expr, envir, enclos): could not find function "select"