38 questions
0
votes
0
answers
114
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 ...
1
vote
1
answer
225
views
How do I use the usethis package when I have already developed an R package on GitHub?
I have a package I created a while ago using the RStudio package option. I am linked in via 2 factor authentication. I have successfully pushed, pulled, and committed to my repo.
I have now reached ...
0
votes
1
answer
95
views
How to replace internal packge data in R testthat
I have an R package in which I use internal data set with usethis::use_data internal = TRUE, and saved to a sysdata.rda in my R folder. When running my unittests however, I would like to 'overwrite' / ...
1
vote
1
answer
147
views
How to remove duplicate package alias in autocreated pkgname-package.R?
I used lifecycle for the depreciated badge, which required me to use usethis::use_package_doc (I BELIEVE - this may not have been the function but I think it was). This resulted in a script myPkgName-...
2
votes
1
answer
1k
views
Cannot get Git tab to show up in RStudio
I've looked through a bunch of links so far, but so far none of them seems to solve my issue with installing the usethis package or getting my Git tab to work in R. For context, my session_info is ...
0
votes
0
answers
104
views
How to update internal data using use_data
I would like my script to access internal data that can be updated. The data will be countries visited and the date. Not a high frequency data set, so doesn't justify using a database.
These are the ...
0
votes
1
answer
502
views
Unable to publish GitHub page for my R package using pkgdown
I was trying to build a website for my R package using pkgdown R package. FYI, I am not using <username>.github.io.
Following the instrucution (https://pkgdown.r-lib.org/articles/pkgdown.html#...
4
votes
1
answer
874
views
Can't get Github PAT to persist - RStudio & Ubuntu 20
I'm using RStudio + Github and have been following the instructions here: https://happygitwithr.com/https-pat.html
It works great, except that within a couple of hours the PAT no longer works and I'm ...
1
vote
1
answer
68
views
R - %||% pipe operator
I'm trying to reuse snippets of code from the r-lib repository. I can't find where this particular pipe operator is defined:
getOption("usethis.description") %||% list()
Could anyone direct ...
1
vote
1
answer
422
views
large files in R package - add to .Rbuildignore?
I have a function that takes a while to run in one of my packages. It only gets called when building vignettes, so to save on build time I stored the output to the package's internal data with usethis:...
1
vote
1
answer
703
views
Unable to understand 1 note in devtools::check() caused by a platform-specific device (X11)
I'm trying to upload my package to CRAN and using devtools::check(), but I'm not able to understand why the function is showing 1 note.
The code is available in my repository. The check function shows ...
2
votes
1
answer
468
views
pkgdown::build_site() not capturing R package logo in HTML renders
I recently got a new laptop with Windows 11 (despite my sessionInfo() stating Windows 10) and I'm trying to build a pkgdown site for an R package that I'm developing. This is not an issue that I have ...
2
votes
1
answer
748
views
How to add documentation to package (not to the package's functions)
I am trying to get documentation to show up for an actual package (not its functions, since that's done automatically when documentating the package) through the help() or ? functions.
For example, ...
1
vote
1
answer
2k
views
`use_import_from' is not an exported object from 'namespace:usethis`
While developping an R package, I'm trying to use the function usethis::use_import_from() to import in the package a single function from another package but the function is not available whatever way ...
0
votes
1
answer
2k
views
InternetOpenUrl failed: 'A connection with the server could not be established'
I have gone down a rabbit hole trying to set up Github actions to check the builds of my packages via usethis::use_github_action_check_standard(). The function fails when it tries to pull the .yaml ...
0
votes
0
answers
318
views
Error installing R packages (R 3.4.4), asks for usethis when already installed
I'm having the following problem:
When I try to install any R package, at first it downloads the package just fine into a temporal location, and then the following error message appears:
Error: ...
1
vote
1
answer
1k
views
How to add pre-commit git hooks to check that README.Rmd and index.Rmd have been knitted?
I have an R package with a pkgdown documentation site. I want to create a git hook so that if I try to commit and push changes to either README.Rmd or index.Rmd without first knitting them to create ...
1
vote
1
answer
471
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, ...
1
vote
1
answer
508
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 '...