You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EDIT: This was aimed to be an issue in usethis, not pkgdown. Can someone please transfer it? Thanks and sorry. 😆
I often find myself in the situation wanting to browse the pkgdown site of a package rather than its GitHub or CRAN site.
I am currently using browseURL(desc::desc_get_urls()[1]) for this which opens the pkgdown site if it exists in the URL field and comes first. If missing, the GitHub page is opened. If no URL field exists, it errors obviously.
Some pkgs do not have a URL field at all and while usethis::browse_github() already falls back to usethis::browse_cran(), I have the feeling that a wrapper function like browse_package() could be helpful.
Essentially it would try to look for a pkgdown page first, fall back to the GitHub page and last to the CRAN page.
The text was updated successfully, but these errors were encountered:
EDIT: This was aimed to be an issue in usethis, not pkgdown. Can someone please transfer it? Thanks and sorry. 😆
I often find myself in the situation wanting to browse the pkgdown site of a package rather than its GitHub or CRAN site.
I am currently using
browseURL(desc::desc_get_urls()[1])
for this which opens the pkgdown site if it exists in the URL field and comes first. If missing, the GitHub page is opened. If no URL field exists, it errors obviously.Some pkgs do not have a URL field at all and while
usethis::browse_github()
already falls back tousethis::browse_cran()
, I have the feeling that a wrapper function likebrowse_package()
could be helpful.Essentially it would try to look for a pkgdown page first, fall back to the GitHub page and last to the CRAN page.
The text was updated successfully, but these errors were encountered: