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
1
vote
1 answer
Supress long html output with kable_styling
One of the functions in my package produces a table using kable() and kable_styling(). When I run this code, I see both the output in the viewer and the long HTML code in the console. I see solutions for excluding the HTML output in an Rmd but not…

yake84
- 3,004
- 2
- 19
- 35
1
vote
0 answers
pkgdown some references showing 404 and image on readme doesn't show on home
Three of my reference links go to 404. This is one of them https://meghapsimatrix.github.io/simhelpers/reference/calc_absolute.html
The other two are calc_relative_var and calc_rejection
I changed the names of these functions last night. I am not…

meghapsimatrix
- 11
- 1
1
vote
0 answers
Creating a webpage with R and Github
I am following this link
and at the very end I am getting this error
pkgdown::build_site()
Error : Can't find DESCRIPTION
Error: Can't find DESCRIPTION
I would be appreciate any help.

Seyma Kalay
- 2,037
- 10
- 22
1
vote
1 answer
How to have pkgdown code chunks with a dark background?
I am trying to have code chunks displayed with a dark background in my website generated by pkgdown.
I've been looking for a way to change syntax highlighting in code chunks, but found only little information so far, and nothing that allowed me to…

Dominique Makowski
- 1,511
- 1
- 13
- 30
1
vote
2 answers
Add logo of copyright holder or funder in pkgdown index.html
I would like to add a logo of the copyright holder/funder in the static webpage of the R package I am maintaining. The webpage is created with pkgdown.
I see that, on their static webpages, all of the tidyverse packages have the RStudio logo at the…

Maria Kalimeri
- 36
- 3
1
vote
1 answer
pkgdown htmlwidget - Examples
I have tried pkgdown for many htmlwidgets but no example work. They all return the same error:
USArrests %>%
dplyr::mutate(
State = row.names(.),
Rape = -Rape
) %>%
e_charts(State) %>%
e_bar(Murder) %>%
e_bar(Rape, name = "Sick…

JohnCoene
- 2,107
- 1
- 14
- 31
0
votes
1 answer
My news md does not show up in my pkgdown site
I have a R package called relper, recently I did some updating in my news file, here a sample:
# relper 3 (Calculations all the way)
To improve data analysis, I added functions that compute metrics and other calculations.
##…

Vinícius Félix
- 8,448
- 6
- 16
- 32
0
votes
1 answer
home page generated by pkgdown not rendering properly
After a few months without updating my package mRpostman, I decided to include GitHub Actions unit test badge on README.Rmd file. I used usethis::use_github_action("check-standard") then manually added the URL to the badge as recommended. I have…

allanvc
- 1,096
- 10
- 23
0
votes
1 answer
Border around Markdown embed in RMarkdown
I have a couple of Github profile "cards" created from here which I am embedding as Markdown in a RMarkdown page on a pkgdown website.
How would i go about adding a border to these? Anything i have found searching has been about using CSS or html to…

hokeybot
- 195
- 5
0
votes
0 answers
Data frame rows error when trying to build news.md in pkgdown site
I'm trying to build a news.md file for a pkgdown site, but when I run pkgdown::build_site() or pkgdown::build_news() I am getting the following error:
-- Building news ---------------------------------------------------------------
Error in…

sj90
- 53
- 3
0
votes
1 answer
pkgdown github action failing
I am having a problem publishing my pkgdown site on GitHub pages. To demonstrate this I have generated an example package available here.
To create this package I…

Hugh Warden
- 454
- 4
- 14
0
votes
0 answers
How can I use an email address for BugReports link with pkgdown generated webpage for R package?
I'd like to use an email address for the BugReports field and have pkgdown create a "Report a bug" link in the sidebar of the page that actually points to the email address.
Currently, if BugReports: myemailaddress@gmail.com
Then the sidebar link…

mikeblazanin
- 85
- 5
0
votes
1 answer
How to list "Get Started" vignette under both "Get Started" and "Articles" in pkgdown site for R package?
This is similar to How to move "Get Started" to articles in pkgdown, but I want the article sharing the name of the package to be listed both under "Get Started" and under the "Articles" list.
Simply listing the vignette under the articles list in…

mikeblazanin
- 85
- 5
0
votes
1 answer
How to move "Get Started" to articles in pkgdown
Usually, pkgdown websites have a "Get Started" section in the navbar.
However, user feedback I had is that people only look at the examples in the readme, then click on the articles, without even noticing this section.
The "Get Started" article…

Dan Chaltiel
- 7,811
- 5
- 47
- 92
0
votes
0 answers
pkgdown and R Markdown templates
For a package containing multiple R Markdown templates, is it possible to include the rendered versions of these templates (skeleton.Rmd) as vignettes / articles in the package documentation website (set up using pkgdown). I'd like to get a a nice…

Roel Verbelen
- 21
- 4