Use for questions about the pkgdown R package, used for semi-automatic building for package websites, written by Hadley Wickham.
Questions tagged [pkgdown]
60 questions
0
votes
1 answer
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 .github.io.
Following the instrucution (https://pkgdown.r-lib.org/articles/pkgdown.html#publishing), I ran
usethis::use_pkgdown_github_pages()
I…

enigma432
- 11
- 3
0
votes
1 answer
pkgdown build_site example not rendering
I have the following as an example in two files
@examples
x <- mtcars$mpg
some_func_here(x)
The some_func_here(x) is failing because it says that x is not found...
Here are the two pages where the example fails:
bootstrap_p_augment
AND…

MCP_infiltrator
- 3,961
- 10
- 45
- 82
0
votes
1 answer
pkgdown workflow fails to deploy gh pages
I setup for my R package repository a pkgdown workflow.
The .github/workflows/pkgdown.yaml file:
on:
push:
branches: [main, master]
release:
types: [published]
workflow_dispatch:
name: pkgdown
jobs:
pkgdown:
runs-on:…

elenabusca
- 71
- 4
0
votes
1 answer
Reticulate fails automatic configuration in R package
I'm working on a R package, that makes use of reticulate to call some functions of a Python package I implemented, installable through pip.
Following its documentation, I setup the reticulate automatic configuration of Python dependencies as…

elenabusca
- 71
- 4
0
votes
1 answer
Gitlab CI fails for r package
I am building an R Package on GitLab and I am trying to get the GitLab CI to work, the issues are
devtools::check fails if there is an error, warning or note. I only want it to fail on errors
Deploy pkgdown to GitLab pages, it doesn't seem to…

Joshua
- 184
- 1
- 11
0
votes
2 answers
Plots in function documentation do not display correctly
I am writing an R-package and its documentation using roxygen2 to document my functions and pkgdown to create a github page.
The package is about rasters, so I have included some raster plot in the examples of my function documentation.
When the…

Gerald T
- 704
- 3
- 18
0
votes
1 answer
Unable to push Package Website (pkgdown from R) to GitHub
I used the pkgdown package to create a new website of my package that will be hosted on Github.
I ran the following codes:
# Run once to configure package to use pkgdown
usethis::use_pkgdown()
# Run to build the website
pkgdown::build_site()
The…

NganKD
- 71
- 6
0
votes
1 answer
pkgdown::deploy_to_branch() SSL cert error
I've been using pkgdown::deploy_to_branch() for awhile now to publish my docs on the gh-pages branch of my repo, but as of this week it stopped working and has started giving me the following error:
Error: callr subprocess failed: server certificate…

seth127
- 2,594
- 5
- 30
- 43
0
votes
1 answer
pkgdown error: Undefined tag in usage tag_code
I'm running into an error message that I do not understand when trying to build a website for my package with pkgdown.
As the instruction (https://pkgdown.r-lib.org/) says:
I've run usethis::use_pkgdown() one time.
When I run pkgdown::build_site()…

kuecki95
- 55
- 5
0
votes
1 answer
Vignette fails to be built by pkgdown
I have a R package that I am trying to setup pkgdown for. I'm following the instructions here, and am running build_site() to generate the docs directory. When running this command, I get the error
Quitting from lines 28-29 (Data-Model.Rmd)
Error :…

Conor Neilson
- 1,026
- 1
- 11
- 27
0
votes
1 answer
How can I manually create links within a {pkgdown} site?
The pkgdown autolinking vignette goes into some detail about how the package creates links in websites, both to other pages within the site itself and to documentation for other packages. I would like to know if there is an easy means of replicating…

wurli
- 2,314
- 10
- 17
0
votes
0 answers
Why are my R functions not loading when I install my package from Github?
I am working on an R package. It was on my GitHub, but after fiddling with pkgdown to get a fancy website, the package no longer works. Specifically, the functions within it are no longer accessible, even after loading the package:
>…

Joey
- 1
- 3
0
votes
1 answer
aligning heading and subheading in `pkgdown` article table of content (TOC)
I am building a pkgdown website for my R package. Everything is working well, but one customization I haven't managed to figure out is how to align article headings and subheadings in a table of content (TOC).
In the image below,
On the left:…

Indrajeet Patil
- 4,673
- 2
- 20
- 51
0
votes
0 answers
Generate an "edit this document" link on all pages
I really like the "Fork me on GitHub" banner in visNetwork's user manual.
For pkgdown, bookdown, and blogdown sites, is there a convenient way to generate such a link in the header of all pages?

landau
- 5,636
- 1
- 22
- 50
0
votes
1 answer
Error with pkgdown build_site() related to YAML serializer
When I run pkgdown::build_site(), I get the following error:
Error in .Call(C_serialize_to_yaml, x, line.sep, indent, omap, column.major, :
Incorrect number of arguments (9), expecting 8 for 'serialize_to_yaml'
Calls: withCallingHandlers ...…

Jeffrey Girard
- 761
- 4
- 20