Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This patch allows htmlwidgets to display in pkgdown sites. #404

Closed
wants to merge 5 commits into from

Conversation

dmurdoch
Copy link

@dmurdoch dmurdoch commented Mar 7, 2021

It requires the corresponding branch of downlit and pkgdown to have been installed:

remotes::install_github("dmurdoch/downlit@rglpatch")
remotes::install_github("dmurdoch/pkgdown@rglpatch")

PR's have been sent to those two packages.

dmurdoch added 2 commits March 7, 2021 16:24
It requires the corresponding branch of downlit and pkgdown to have been installed:

 remotes::install_github("dmurdoch/downlit@rglpatch")
 remotes::install_github("dmurdoch/pkgdown@rglpatch")
- Add Remotes to DESCRIPTION so the right branches of downlit and pkgdown are loaded.
@jcheng5
Copy link
Collaborator

jcheng5 commented Mar 16, 2021

@hadley
Copy link

hadley commented Mar 23, 2021

Just merged the pkgdown fix, so once the remotes are updated this should be good to merge.

DESCRIPTION Outdated
rmarkdown,
testthat
Enhances: shiny (>= 1.1)
URL: https://github.com/ramnathv/htmlwidgets
BugReports: https://github.com/ramnathv/htmlwidgets/issues
RoxygenNote: 7.1.1
Remotes: dmurdoch/downlit@rglpatch, dmurdoch/pkgdown@rglpatch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have these PRs been merged? If so, the Remotes can be updated to point to the main repositories.

@dmurdoch
Copy link
Author

Yes, they are merged into the devel versions on Github, but not yet on CRAN. I'll change the Remotes field.

@dmurdoch
Copy link
Author

The patches to pkgdown and downlit were merged long ago, but a later patch to pkgdown broke things again. The PR to fix the breakage (r-lib/pkgdown#1719) has been languishing there since June. Currently I'm recommending these versions to get things to work:

remotes::install_github(c( "r-lib/downlit",
                      "dmurdoch/pkgdown@issue1689"))

It's quite frustrating how long it's taken to get these PRs merged (including this one, which has been here since March).

@hadley
Copy link

hadley commented Sep 21, 2021

I'm going to be focussing the majority of my time on pkgdown and friends for the next few weeks, so I'll push this along as needed.

@hadley
Copy link

hadley commented Sep 27, 2021

You can close this; I've incorporated the code into downlit and pkgdown.

@jcheng5 jcheng5 closed this Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants