Questions tagged [r-devtools]
15 questions
2
votes
0 answers
Failure to install package from github using devtools
I am unable to install a package from GitHub. SCCRWP/ASCI. This is a model for assessing stream health using algal community composition. First my session info:
- Session info…

Nathan Mack
- 77
- 5
1
vote
0 answers
g++ not found when using install_github
I am trying to install an r-package via github via devtools::install_github('package_name')
I get the following error: "sh: g++ not found" and "ERROR: compilation failed for package 'package_name' "
Question: What do I need to do in order to…

Riktros
- 21
- 1
1
vote
1 answer
Files and Directories Included in CRAN Submission
I would like to submit a package to CRAN using devtools::release and omit a few files and directories from the submission. When uploading a package to Github, files and directories can be excluded by listing them in .gitignore. What I am looking for…

Chr
- 1,017
- 1
- 8
- 29
1
vote
1 answer
Installed R github package does not include R/sysdata.Rda
I have an R github package that I can 'successfully' install using devtools::install_github("jwilliman/ethnicNZ") (or remotes::install_github). On github the package contains internal data saved as 'R/sysdata.Rda' using the command…

JWilliman
- 3,558
- 32
- 36
1
vote
0 answers
Rename R\ Directory in devtools package
I'm working on a data analysis project that will use code in languages other than R alongside it. Is there a way to have devtools find renamed directories (e.g moving the R\ directory into "code\R" or man\ into "docs/R")?
Thank you!

Kyouma
- 320
- 6
- 14
1
vote
1 answer
devtools::use_vignette("my_package") give error
Im trying to create a vignette using the following command from Hadley Wickham's R-package book:
devtools::use_vignette("my_package")
But get the following error:
Error: 'my_package' is not an exported object from 'namespace:devtools'

Oscar Kjell
- 1,599
- 10
- 32
1
vote
2 answers
R packages: "Error: object 'compute' not found whilst loading namespace .."
My directory structure is as follows:
c:/Users/bob/MyPackageName
c:/Users/bob/MyPackageName/R
c:/Users/bob/MyPackageName/tests
c:/Users/bob/MyPackageName/tests/testthat
My development session normally consists of starting an R session in the…

Vrokipal
- 784
- 5
- 18
1
vote
1 answer
Warning message when installing devtools
When I try to install devtools in Rstudio 3.2.3 (Windows 10) using the command install.packages("devtools"), I get the following message:
warning in install.packages :
'lib = "c:/Program Files/R/R-3.2.3//library"' is not writable
I'm a newby and…

Julia
- 11
- 3
1
vote
1 answer
Problems with install_bitbucket
I have a student in my class who has had problems installing the course R package which is on bitbucket. He is running Windows Version 8, 64 bit. I tried to install directly from the package tar ball using RStudio|Tools|Install Packages and got the…

user3150307
- 11
- 3
0
votes
1 answer
Rmd file which sources an R script which sources another R script
To make my code modular, I wrote a R script for plotting data, which invokes an R script to prepare the data (to be plotted):
The document.Rmd file contains a line source('./R/customPlot.R') and this script in turns contains a line…

NicolasBourbaki
- 853
- 1
- 6
- 19
0
votes
1 answer
Cannot add a vignette to an R package
Could you please help me?
I'm building an R package for the final assignment of Coursera's Building R Packages.
So far, I've followed all steps to add a vignette described in the courses's readings, chapter 16.7 of R Markdown Cookbook, and chapter…

Marco
- 347
- 3
- 18
0
votes
1 answer
Can't disable vignette build when using devtools
When running
==> devtools::check(args = c('--no-build-vignettes','--no-vignettes'))
from RStudio the vignettes are still being build:
...
v checking DESCRIPTION meta-information ...
- installing the package to build vignettes (1.4s)
…

witek
- 984
- 1
- 8
- 25
0
votes
0 answers
browser() on error while running devtools::check()
When running devtools::check(), my package builds with an error that I cannot pinpoint. What debugging options are available when creating R packages? I am looking for something along the lines of browser() on error.
The error is thrown due to an…

Julie
- 1
- 3
0
votes
0 answers
Chart a map with highcharter
I am trying to chart a map with highcharter using the hcmap function:
devtools::install_github("jbkunst/highcharter")
library(highcharter)
hcmap("custom/south-america")
However, I get the following error:
Installing tidyr
Downloading GitHub repo…

Pablo Ugarte
- 35
- 1
- 8
-1
votes
1 answer
Rtools not found by devtools, but ls and gcc are on PATH
Sys.which('gcc')
gcc
"C:\\Users\\[redacted]\\Documents\\aps\\Rtools\\mingw_32\\bin\\gcc.exe"
Sys.which('ls')
ls…

kurast
- 1,660
- 3
- 17
- 38