16 questions
0
votes
0
answers
143
views
Bug in install.packages in R version 4.5.1; incorrect path to DESCRIPTION
I am getting this error when trying to install any package, and I just don't see how it could be caused by any local settings on my machine. So I am suspecting that this is a bug, which however would ...
0
votes
1
answer
84
views
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 ...
2
votes
0
answers
768
views
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 -------------------------...
1
vote
0
answers
737
views
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 '...
1
vote
1
answer
103
views
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 ...
1
vote
1
answer
478
views
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, ...
0
votes
1
answer
596
views
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 ...
- ...
1
vote
1
answer
512
views
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 '...
1
vote
0
answers
86
views
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 ...
1
vote
1
answer
1k
views
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 ...
0
votes
0
answers
54
views
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 ...
1
vote
2
answers
2k
views
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 ...
-1
votes
1
answer
312
views
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')
...
0
votes
0
answers
396
views
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 ...
1
vote
1
answer
1k
views
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....
1
vote
1
answer
1k
views
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 ...