devtools

devtools::install_github() - Ignore SSL cert verification failure

我怕爱的太早我们不能终老 提交于 2019-12-17 15:40:06
问题 I'm trying to get devtools::install_github() working behind my corporate proxy on Windows 7. So far I've had to do the following: > library(httr) > library(devtools) > set_config(use_proxy("123.123.123.123",8080)) > devtools::install_github("rstudio/ggvis") Installing github repo ggvis/master from rstudio Downloading master.zip from https://github.com/rstudio/ggvis/archive/master.zip Error in function (type, msg, asError = TRUE) : SSL certificate problem, verify that the CA cert is OK.

R data.table breaks in exported functions

醉酒当歌 提交于 2019-12-17 12:15:21
问题 I'm having a problem getting data.table to work in roxygen2 exported functions. Here's a simple, fake function in a file called foo.R (located in the R directory of my package) which uses data.table: #' Data.table test function #' @export foo <- function() { m <- data.table(c1 = c(1,2,3)) print(is.data.table(m)) m[,sum(c1)] } If I copy and paste this function into R, this function works fine: > foo <- function() { + m <- data.table(c1 = c(1,2,3)) + print(is.data.table(m)) + m[,sum(c1)] + } >

R data.table breaks in exported functions

…衆ロ難τιáo~ 提交于 2019-12-17 12:15:13
问题 I'm having a problem getting data.table to work in roxygen2 exported functions. Here's a simple, fake function in a file called foo.R (located in the R directory of my package) which uses data.table: #' Data.table test function #' @export foo <- function() { m <- data.table(c1 = c(1,2,3)) print(is.data.table(m)) m[,sum(c1)] } If I copy and paste this function into R, this function works fine: > foo <- function() { + m <- data.table(c1 = c(1,2,3)) + print(is.data.table(m)) + m[,sum(c1)] + } >

No RTools compatible with R version 3.5.0 was found

橙三吉。 提交于 2019-12-17 07:30:38
问题 I had problems installing data.table for R version 3.5.0, and was advised to check that RTools was properly installed. After installing RTools 3.5 (this seems to be the latest) I typed find_rtools(T) I got the following message: WARNING: Rtools is required to build R packages, but no version of Rtools compatible with R 3.5.0 was found. (Only the following incompatible version(s) of Rtools were found:3.4,3.5) Please download and install the appropriate version of Rtools from http://cran.r

Why do I need SVN to install rgl from github using install_github? [duplicate]

ぃ、小莉子 提交于 2019-12-14 02:30:13
问题 This question already has an answer here : How do I install the latest version of rgl? (1 answer) Closed 2 years ago . It was surprising to find install_github failing with a message "SVN does not seem to be installed on your system" indicating that SVN was needed. This followed the advice from a well-known rgl installation question How do I install the latest version of rgl. I could install it manually, but I did not understand the message and posted the question in the title. After some

Cannot install IRkernel with install_github(): Git not installed?

我们两清 提交于 2019-12-14 00:22:30
问题 I was trying to get R working with the Jupyter Notebook on my Windows machine. I followed the IRkernel tutorial. However, I can't install the GitHub repository, I always get the error install_github("IRkernel/IRkernel") Downloading GitHub repo IRkernel/IRkernel@master Error: Git does not seem to be installed on your system. The devtools package (2.0.1) is installed. install_github also works for example with install_github("StatsWithR/statsr") (Coursera package) (although the devtools package

installation of package ‘devtools’ had non-zero exit status in a powerpc

时光总嘲笑我的痴心妄想 提交于 2019-12-14 00:18:57
问题 I'm trying to install devtools in a PowerPC with a R version 3.1.1 but failed at the end because the curl library: ... ** testing if installed package can be loaded Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/path to/R/powerpc-unknown-linux-gnu-library/3.1/curl/libs/curl.so': /path to/R/powerpc-unknown-linux-gnu-library/3.1/curl/libs/curl.so: undefined symbol: BSWAP_32 Error: loading failed Execution halted ERROR: loading failed * removing ‘/path to/R

Problems installing the devtools package

谁都会走 提交于 2019-12-13 03:39:10
问题 I wish to use the devtools package. I've run the following commands: > install.packages("devtools", dependencies = TRUE) .... > library(devtools) Error in library(devtools) : there is no package called ‘devtools’ What am I doing wrong? Edit: Here are the results of re-running the install.packages command after restarting the session. > install.packages("devtools", dependencies = TRUE) Installing package into ‘/home/evanaad/R/x86_64-pc-linux-gnu-library/3.0’ (as ‘lib’ is unspecified) ---

Errors when trying to stream from the Twitter API

只愿长相守 提交于 2019-12-13 03:22:18
问题 I am trying to stream data from Twitter, by using StreamR and this guide https://github.com/pablobarbera/streamR It worked recently, but now I get this error when I try to stream any data; library(ROAuth) library(streamR) my_oauth <- list(consumer_key = "...", consumer_secret = "...", access_token="...", access_token_secret = "...") getUsers(screen_names="LSEnews", oauth = my_oauth) #Error in function (type, msg, asError = TRUE) : #Unknown SSL protocol error in connection to api.twitter.com

Cannot install “flexdashboard package”

痞子三分冷 提交于 2019-12-13 02:23:12
问题 I tried installing the flexdashboard package but an error message came up: Here is the code: devtools::install_github("rstudio/flexdashboard") Error Message: Downloading GitHub repo rstudio/flexdashboard@master Installing flexdashboard Installing 1 packages: digest package ‘digest’ successfully unpacked and MD5 sums checked Warning: cannot remove prior installation of package ‘digest’ "C:/PROGRA~1/R/R-32~1.2/bin/x64/R" --no-site-file --no-environ --no-save --no-restore \ CMD INSTALL \ "C: