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

What are Parse, Compile and Evaluate in DevTools Performance tool?

When running JS scripts in Chromes' Performance tab, I see there are three steps for JS interpretation: Parse, Compile and Evaluate. Sometimes I just see Evaluate, sometimes Compile and Evaluate and sometimes it's the whole three. My questions…
Eliran Pe'er
  • 2,569
  • 3
  • 22
  • 33
16
votes
7 answers

Java Swing: Libraries, Tools, Layout Managers

What libraries/tools do you have in your Java Swing Tool set? XUL Layout Managers Packagers/Installers Books etc.....
l_39217_l
  • 2,090
  • 1
  • 13
  • 15
16
votes
2 answers

Error when installing an R package from github: Could not find build tools necessary to build data.table

From within RStudio I'm trying to install the data.table package from github following these instructions, and the package seems to download without a problem: > library(devtools) > dev_mode(on=T) Dev mode: ON d>…
Robert
  • 2,111
  • 4
  • 18
  • 32
16
votes
1 answer

Install Rtools on R version 3.0.2

I've installed devtools for R, but when I call the library with: library(devtools) I get the following output: WARNING: Rtools is required to build R packages, but is not currently installed. Please download and install Rtools 3.1 from…
Jonathan Charlton
  • 1,975
  • 6
  • 23
  • 30
16
votes
6 answers

Best enterprise repository tool for Maven 2?

Some of the other questions and answers here on SO extol the virtues of using an enterprise repository tool like Archiva, Artifactory, or Nexus. What are the pros and cons of each? How do I choose between them? In case it helps: We use both Maven 1…
Andrew Swan
  • 13,427
  • 22
  • 69
  • 98
16
votes
3 answers

add citation information in R package

I am building my R package using Roxygen2 and devtools, and I would like to add some citation information in my R codes (i.e. I hope to write in a .R file from which the citations can be auto-generated). The ultimate goal is to display, once I run…
alittleboy
  • 10,616
  • 23
  • 67
  • 107
16
votes
3 answers

do not show function help document in building R package by roxygen2

I am using devtools to build R package, and there are some functions that are NOT designed to be visible to end-users. However, since these functions involve calling C codes by .Call, so that I have to write @useDynLib above the function for…
alittleboy
  • 10,616
  • 23
  • 67
  • 107
15
votes
3 answers

Invalid argument(s: A directory corresponding to fileSystemPath /Users/user/.pub-cache/hosted/pub.dartlang.org/devtools-2.9.2/build could not be found

Somehow the "build" directory doesn't exist within devtools-2.9.2 directory. I am getting this exception only while running the build on iPhone SE 2nd generation iOS 14.5 simulator though, which is weird. This began after an unexpected forced reboot…
discodancer
  • 163
  • 1
  • 7
15
votes
2 answers

Listening console.log

I want to set a listener for console.log() and do something with the message without preventing the default behaviour. So, the console of the dev tools should get the message as well. Any ideas?
Peter Efrans
  • 153
  • 1
  • 4
15
votes
2 answers

How to make variable available to namespace at loading time

In one of my packages I use the .onAttach hook to run some R code and then use assign to make the value available as one of the package variables. I do it because variable depends on the content of some file, which can change between one session and…
lucacerone
  • 9,859
  • 13
  • 52
  • 80
15
votes
1 answer

R CMD check NOTE: Namespace in Imports field not imported

I continue to get the following R CMD check (via devtools::check()) for a package I am preparing to submit to CRAN (you can see the results for the package here: Check: dependencies in R code Result: NOTE Namespace in Imports field not…
Joshua Rosenberg
  • 4,014
  • 9
  • 34
  • 73
15
votes
1 answer

Enabling vignette compression for R CMD build in RStudio

I am using RStudio for package development in windows environment. I need to enable pdf vignette compression to avoid 'gs+qpdf' made some significant size reductions: warning. I have added --compact-vignettes="gs+qpdf" as additional options to…
Crops
  • 5,024
  • 5
  • 38
  • 65
14
votes
1 answer

Cannot put breakpoint on async/await in Chrome devtools

{ async function foo() { return new Promise((resolve, reject) => { setTimeout(resolve, 500) }) } async function bar() { await foo() console.info('foo done') } bar() } I open a snippet in chrome devtools source…
JerryYu
  • 379
  • 3
  • 16
14
votes
5 answers

tidyverse not loaded, it says "namespace ‘vctrs’ 0.2.0 is already loaded, but >= 0.2.1 is required"

strong textI keep encountering problems with installing tidyverse package, which preventing me from implementing many text processing tasks. The problem is the same as those mentioned in many previous threads since 2017 in that when I enter…
Chris T.
  • 1,699
  • 7
  • 23
  • 45
14
votes
2 answers

CRAN notes that files cannot be checked without ‘pandoc’ being installed

In doing final checks on a CRAN package submission, this NOTE comes up: * checking top-level files ... NOTE Files ‘README.md’ or ‘NEWS.md’ cannot be checked without ‘pandoc’ being installed. However, pandoc is definitely installed as I use it…
dshkol
  • 1,208
  • 7
  • 23