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
197
votes
18 answers

Problems installing the devtools package

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…
Evan Aad
  • 5,699
  • 6
  • 25
  • 36
63
votes
3 answers

How to install R package from private repo using devtools install_github?

I am trying to install a sample package from my github repo: https://github.com/jpmarindiaz/samplepkg I can install it when the repo is public using any of the following commands through the R…
jpmarindiaz
  • 1,599
  • 1
  • 13
  • 21
51
votes
3 answers

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

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…
Crops
  • 5,024
  • 5
  • 38
  • 65
41
votes
5 answers

NAMESPACE not generated by roxygen2. Skipped. - Confusion with Hadley book

I am trying to make a package but when I run document() it prints NAMESPACE not generated by roxygen2. Skipped. I am trying to use ggplot2,XML, R6 packages in my functions. I am importing them in the following way: #' @rdname visualization #' @param…
hi15
  • 2,113
  • 6
  • 28
  • 51
39
votes
2 answers

R: How can I install a specific release by install_github()?

If the current version of a package, gives some errors, users may prefer to install a specific release (e.g. version 1.0.1). What kind of R code can be used to achieve that? Take for example for the release of the latest OhdsiRTools R…
userJT
  • 11,486
  • 20
  • 77
  • 88
39
votes
3 answers

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

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…
drmariod
  • 11,106
  • 16
  • 64
  • 110
39
votes
6 answers

Best XPath tools

What tools are you guys using for XPath and why? Right now I'm using SketchPath because its totally awesome, but its a windows app that needs to be installed WhiteBeam online XPath test bedbecause you can test expressions from the…
Sayed Ibrahim Hashimi
  • 43,864
  • 17
  • 144
  • 178
35
votes
3 answers

How to specify lib directory when installing development version R Packages from github repository

In Ubuntu, I am installing all the R packages in the directory, /usr/lib/R/site-library by specifying lib option in install.packages(). But when I try to install the development version of the R packages using, install_github(), it always installs…
Manoj G
  • 1,776
  • 2
  • 24
  • 29
34
votes
2 answers

Is it possible to use R package data in testthat tests or run_examples()?

I'm working on developing an R package, using devtools, testthat, and roxygen2. I have a couple of data sets in the data folder (foo.txt and bar.csv). My file structure looks like this: / mypackage / data * foo.txt, bar.csv / inst …
ldecicco
  • 883
  • 8
  • 16
34
votes
4 answers

Make "Selected Context Only" persist in Chrome DevTools console settings

I get a ton of misc errors from misc Chrome Extensions in my console. If I go to settings and check "Selected Context Only" then they go away and everything is good. If I ever close that tab, or open a fresh Chrome window, "Selected Context Only" is…
corysimmons
  • 7,296
  • 4
  • 57
  • 65
34
votes
4 answers

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

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…
Benjamin
  • 16,897
  • 6
  • 45
  • 65
32
votes
3 answers

Which is the correct folder to store images used in vignettes for R packages ?

I am writing a vignette for my R package. I want to include a .jpg image on the .Rmd file that will generate the pdf vignette. The question is: where should I store this image? I am using the packages devtools and knitr to generate vignettes…
Gustavo B Paterno
  • 976
  • 1
  • 9
  • 14
31
votes
3 answers

Safari - WebInspector Network Tab - An error occurred trying to load the resource

I am seeing the error in the image below in Safari's Developer Tools (Network Tab) for the XHR/Fetch. The response body is not visible. It always throws the red text 'An error occurred trying to load the resource'. My initial thought was that the…
Ramesh
  • 619
  • 3
  • 8
  • 16
30
votes
3 answers

Making an R package PDF manual using devtools

I am making an R package using devtools and roxygen2. I can get a PDF manual using R CMD but I am really curious as to whether this can be done using devtools. devtools' build(), check(), install() all don't make a PDF manual. Is this tied to making…
a1b2d3d4
  • 301
  • 1
  • 3
  • 3
29
votes
1 answer

Non-standard file/directory found at top level: 'README.Rmd' persists even after implementing suggested solutions

I am working on a package and running R CMD CHECK on it using devtools::check() produces the following NOTE: > checking top-level files ... NOTE Non-standard file/directory found at top level: 'README.Rmd' A variant of this question has been…
Indrajeet Patil
  • 4,673
  • 2
  • 20
  • 51
1
2 3
99 100