devtools

devtools::install_git Over SSH

二次信任 提交于 2019-11-28 03:10:34
问题 I've written an R package that I keep in a (bare) git repository on an SSH server, and I want to be able to install it on a local machine without needing to clone the repository by hand. I've attempted the following: devtools::install_git("ssh://user_name@remote/path/to/repository") but I get the error Downloading git repo ssh://user_name@remote/path/to/repository Error in git2r::clone(x$url, bundle, progress = FALSE) : Error in 'git2r_clone': Failed to start SSH session: Unable to exchange

developing shiny app as a package and deploying it to shiny server

我们两清 提交于 2019-11-28 02:51:48
I am developing a shiny app and since I wanted to use automated testing and documentation of the function, I started to develop the interface within a package (as recommended here ). I develop this shiny app within RStudio and I have a server.R file which I can click on the Run App button within RStudio and everything works. I commit my package to a github repository and from this point I want to install it on my R shiny server using devtools and install_github function. Now I am wondering how to start my app within the server. I was naively thinking to install the package and pointing to the

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

杀马特。学长 韩版系。学妹 提交于 2019-11-27 19:26:36
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. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed Apparently we have

Error while using install_github | devtools | timeout issue

大兔子大兔子 提交于 2019-11-27 19:20:30
问题 I'm facing this issue when i try to download and install a package from git-hub using devtools. R Version : 3.1.3 (64 bit) > install_github("hadley/httr") Downloading github repo hadley/httr@master Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached > traceback() 13: .Call(R_curl_fetch_memory, url, handle) 12: curl::curl_fetch_memory(url, handle = handle) 11: request_fetch.write_memory(req$output, req$url, handle) 10: request_fetch(req$output, req$url, handle) 9:

R data.table breaks in exported functions

这一生的挚爱 提交于 2019-11-27 14:37:58
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)] + } > foo() [1] TRUE [1] 6 But if I simply load the exported function, R thinks that the data.table is a data

How do you collaborate with other coders in real time? [closed]

让人想犯罪 __ 提交于 2019-11-27 10:34:50
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . Pretend you're hitting me up for some javascript help on IM. How can you make it as easy as possible for me to help you get your code working? I run into this all the time. I'm on instant messenger and someone is asking me a question (or maybe it's me that's asking them) and

R CMD check note: Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’

瘦欲@ 提交于 2019-11-27 09:40:28
问题 How to avoid the following NOTE that is appearing in R CMD check with the new R development version ( R Under development (unstable) (2017-02-15 r72179))? • checking for unstated dependencies in examples ... OK • checking line endings in C/C++/Fortran sources/headers ... OK • checking compiled code ... NOTE File ‘pkgname/libs/pkgname.so’: Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’ It is good practice to register native routines and to disable symbol search. For example in

developing shiny app as a package and deploying it to shiny server

≡放荡痞女 提交于 2019-11-27 05:00:11
问题 I am developing a shiny app and since I wanted to use automated testing and documentation of the function, I started to develop the interface within a package (as recommended here). I develop this shiny app within RStudio and I have a server.R file which I can click on the Run App button within RStudio and everything works. I commit my package to a github repository and from this point I want to install it on my R shiny server using devtools and install_github function. Now I am wondering how

Problems installing the devtools package

风格不统一 提交于 2019-11-27 02:33:32
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) --- Please select a CRAN mirror for use in this session --- Warning: dependencies ‘roxygen2’, ‘BiocInstaller’,

Installing non-public packages from Gitlab using devtools::install_git

亡梦爱人 提交于 2019-11-27 00:42:42
问题 My institution recently installed GitLab for us. I've figured out how to install R packages from the GitLab server using devtools::install_git and it works as long as the project is public. #* When modeltable project has Public status devtools::install_git('https://mini-me2.lerner.ccf.org/nutterb/modeltable.git') However, if I have a package that is listed as either "Internal" or "Private," I can't install the package without some form of authentication. As of yet, I haven't figured out how