Questions tagged [devtools]

An R package containing tools to ease the task of software development.

devtools is an package to make it easier to create and release other R packages. For non-package developers, it also contains functions for getting R packages from online repositories including , and .

Repositories

Books

Other resources

Related tags

1529 questions
0
votes
1 answer

Using 'require' package code to obtain datapackages on the fly in R

I am writing an R package that uses a variety of bioconductor annotation data packages. The specific data packages vary with the use-case. As such, I have a function which does something like this: if (!require(biocpack_name, character.only=T)) { …
alexvpickering
  • 632
  • 1
  • 8
  • 20
0
votes
1 answer

travis build failing because of an apparent circular package dependency

I have an R package A and a package B. The package B genuinely depends on A for some of its functions. The package A depends on B, but only for testing. So the package dependency is not genuinely circular. The travis build fails for A because upon…
Hugh
  • 15,521
  • 12
  • 57
  • 100
0
votes
0 answers

install_bitbucket fails with code 401 error

I have an R package in a private Bitbucket repository. When I tried to install the package from R (using RStudio) I get the following error (I have replaced my password with ): > devtools::install_bitbucket("avrmbla/rmbla",password =…
avriis
  • 1,581
  • 4
  • 17
  • 31
0
votes
1 answer

Error installing devtools, dplyr,ggplot2 on R-devel 3.4.0 on Windows

I will submitting my package to CRAN. I have already built with R 3.2.4 and I now am trying to build on R-devel 3.4.0 before submitting to CRAN as required. I am having problems installing packages. I have installed Rtools33.exe for Windows. But I…
Tinniam V. Ganesh
  • 1,979
  • 6
  • 26
  • 51
0
votes
1 answer

Rstudio not generating .Rd files

I had created an R package several months using Rstudio. All I had to was to select File->New Project ->New Directory ->R package and then add R files to the project after specifying project name. When I clicked "Create Project" the R package…
Tinniam V. Ganesh
  • 1,979
  • 6
  • 26
  • 51
0
votes
0 answers

R code 'runs' fine in Rstudio but fails devtools::load_all() check

This line of code works fine when I 'run' it in Rstudio dt.SSPGDP[, GDP.lag1 :=shift(value), by=c("ISO_code","scenario")] But when I run devtools::load_all(), I get the following error message Error in `:=`(GDP.lag1, shift(value)) (from…
JerryN
  • 2,356
  • 1
  • 15
  • 49
0
votes
0 answers

R CMD check / devtools::test() and the current working directory

I am working on a R package that has some functions that I want to test (locally) on data that I can't distribute, because the data source is proprietary. I have a folder (paid_projections) where I'm keeping those files. This caused some initial…
Andrew
  • 9,090
  • 8
  • 46
  • 59
0
votes
1 answer

MacOS Rstudio devtools loading fails

I need to install the package devtools in R on my mac. The R version is 3.2.3. It gives an error saying Warning in install.packages : download had nonzero exit status Warning in install.packages : download of package ‘curl’ failed Other posts…
Camuslu
  • 123
  • 1
  • 3
  • 13
0
votes
0 answers

error when installing package using 'devtools' in R

I try to install the package RSelenium: devtools::install_github("ropensci/RSelenium") This gives me following error: Downloading GitHub repo ropensci/RSelenium@master from URL…
user3387899
  • 601
  • 5
  • 18
0
votes
0 answers

R: custom URL protocol handlers

In R, connections supported by url() function support the scheme: file:// http:// https:// ftp:// There is additional support in other packages: RCurl urltools ssh.utils but i do not find anything to introduce some custom schema/protocol…
hute37
  • 197
  • 2
  • 8
0
votes
0 answers

R - load_all() and adding a new function file

I'm new to R and need to add a new function file to an existing package. For the programming and testing I used load_all() (from the devtools pkg) to have the original R files. I wrote my function and saved it in the same directory as the rest of…
Inbal H
  • 33
  • 1
  • 6
0
votes
1 answer

Can't access twitteR

I have been reading up on the past posts and this still isn't working for me. I want to use the twitteR package but it won't let me read the the token keys and secrets. Here is the code which can be reproducible and I was hoping someone can give me…
R Guru
  • 171
  • 1
  • 12
0
votes
1 answer

Generic dispatching in a package after a call to devtools::test()

I am confused about something. when I put this function into a package oddTranspose <- function(x) { t(x) } it works fine m <- matrix(c(1,0,0,0), nrow=2) M <- as(m, "Matrix") oddTranspose(m) # works oddTranspose(M) # works but then, when I use…
pdb
  • 1,574
  • 12
  • 26
0
votes
1 answer

RNeo4j Installation Hanging, not Completing

I've tried installing RNeo4j package over and over, with no success - it keeps hanging, never finishing! I tried installing the packages in RStudio (with devtools::install_github("nicolewhite/RNeo4j") ), and even the base R, just to be sure. I…
Deolu A
  • 752
  • 1
  • 6
  • 13
0
votes
0 answers

NAMESPACE not generated by roxygen2. Skipped

I encountered the same problem as in NAMESPACE not generated by roxygen2. Skipped I get Warning message: NAMESPACE not generated by roxygen2. Skipped. at the end of the R CMD check using devtools::check. Here is how my NAMESPACE looks like (I…
ayalaall
  • 145
  • 2
  • 16