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
14
votes
1 answer

"Could not find function" in Roxygen examples during CMD check

I'm running a CMD check on a package in RStudio, part of which analyses the @examples in the inline Roxygen documentation. I'm getting this error: checking examples ... ERROR Running examples in ‘packagename-Ex.R’ failed The error most likely…
Serenthia
  • 1,222
  • 4
  • 22
  • 40
14
votes
3 answers

Data not exported from namespace in R

I've set up and been regularly updating my R package to GitHub following Hadley's extensive documentation about Devtools, Roxygen2 etc., on my laptop. Yesterday I decided to use my main PC instead and am now looking to push changes up to GitHub. I…
dez93_2000
  • 1,730
  • 2
  • 23
  • 34
14
votes
6 answers

devtools::install_github fails with CA cert error

When I try to call install_github, I get the following error (not just for this package, but for all github packages): > install_github('ramnathv/slidify') Downloading github repo ramnathv/slidify@master Error in curl::curl_fetch_memory(url, handle…
Jonathan Gilligan
  • 701
  • 1
  • 5
  • 21
14
votes
3 answers

How to open dev tools in iOS emulator on Browserstack?

I am using iPhone 6 emulator with iOS 8.3 on Browserstack and I need to inspect the source code of the website I am woking on. How do I open developer tools in iOS emulator on Browserstack?
sdvnksv
  • 9,350
  • 18
  • 56
  • 108
14
votes
3 answers

How to remove pixi.js banner from the console?

After seeing it for 1000 times it gets annoying so I'd like to have option to remove it. Somebody online answered that setting PIXI.dontSayHello = true; will solve the problem in older versions of PIXI, but in version 3.0.3 it didn't work.…
Pawel
  • 16,093
  • 5
  • 70
  • 73
14
votes
1 answer

R render Rd using roxygen2 without roxygen2 version

Auto-documentation feature using roxygen2, while it is great and useful, it is annoying on every change of roxygen2 package version. It updates all my documentation files by putting roxygen2 version inside each file. See below. % Generated by…
jangorecki
  • 16,384
  • 4
  • 79
  • 160
14
votes
4 answers

Build & Reload in RStudio on Windows: devtools::document() says devtools not found

When I click "Build & Reload" on the Build tab within RStudio, I get the following error: ==> devtools::document(roclets=c('rd', 'collate', 'namespace')) Error in loadNamespace(name) : there is no package called 'devtools' Calls:…
Jeff Erickson
  • 3,783
  • 8
  • 36
  • 43
14
votes
1 answer

Rd files with different encoding

How do I specify encoding for rd file correctly? I'm trying to add the following help file documenting dummy function to my package: \name{dummy} \encoding{ISO-8859-2} \alias{dummy} \title{Příšerně žluťoučký kůň úpěl ďábelské ódy.} \usage{ …
Tomas Greif
  • 21,685
  • 23
  • 106
  • 155
14
votes
3 answers

Start new R package development on github

How do I create new repository on github using devtools in RStudio? I've tried to: Create empty repository on github named "MyNewRPackage" Started new project in RStudio using ssh connection to my git repository Installed and loaded devtools Then…
Tomas Greif
  • 21,685
  • 23
  • 106
  • 155
14
votes
5 answers

How do I get Rtools 3.0 working for R 3.0? R can't find the installation

I'm trying to get R to recognize that I have installed Rtools.exe. I've tried installing it in several different locations. However, whenever I restart R and load devtools I get the same error: > library(devtools) WARNING: Rtools is required to…
nickfishbane
  • 141
  • 1
  • 7
13
votes
1 answer

information on .o files for x64 is not available: NOTE on R package checks using Rcpp

I am using windows and just updated to R 4.0.3 (with RStudio to 1.3.959) and ran the R check for one of my packages which uses Rcpp and RcppArmadillo and I got the following NOTE: > checking compiled code ... NOTE Note: information on .o files for…
13
votes
1 answer

"API rate limit exceeded" when trying to install local R package using devtools::install()

Package development beginner here! I'm trying to turn some code into a local R package for the very first time. I made a package using usethis::create_package(), added documentation using devtools::document(). Now, after playing around with it for…
labracadabrat
  • 241
  • 2
  • 11
13
votes
1 answer

Need to document arguments in functions which are not exported in R package?

I am using the devtools package to check if a package I am developing is ready for submission to CRAN. Using Roxygen2 through devtools, I documented a small number of functions with #'@export, in order for them to be available when the package I am…
Joshua Rosenberg
  • 4,014
  • 9
  • 34
  • 73
13
votes
4 answers

R github package w/ devtools: warning unknown macro '\item'

I made a package with the help of RStudio & devtools for namespace, DESCRIPTION & Roxygen2 for the man pages. This worked fine, and the help pages I've recently added worked too. I decided to add author name, email, and some details. Initially by…
dez93_2000
  • 1,730
  • 2
  • 23
  • 34
13
votes
2 answers

Problems installing r package via devtools install_github

I am developing two packages on GitHub and I am trying to install them using the devtools::install_github() command. Since the repositories are private, I created a auth_token for my account (as far as I see, there is no way to do this for a single…
drmariod
  • 11,106
  • 16
  • 64
  • 110