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

Vignette count incorrect when counting vignettes on CRAN remote #356

Open
thisisnic opened this issue Oct 30, 2024 · 0 comments
Open

Vignette count incorrect when counting vignettes on CRAN remote #356

thisisnic opened this issue Oct 30, 2024 · 0 comments

Comments

@thisisnic
Copy link

thisisnic commented Oct 30, 2024

The package SHELF is reported as having 10 vignettes, when actually it has 2: see https://cran.r-project.org/web/packages/SHELF/index.html

This is due to how everything in the vignettes directory is being interpreted as a unique vignette.

library(riskmetric)

# I think this one doesn't work as I don't have it configured properly on my network
shelf_ref_default <- pkg_ref("SHELF", source = "pkg_cran_remote")
shelf_ref_default$vignettes
#> NULL

shelf_ref_rstudio <- pkg_ref("SHELF", source = "pkg_cran_remote", repos = "https://cran.rstudio.com")
shelf_ref_rstudio$vignettes
#> No encoding supplied: defaulting to UTF-8.
#> No encoding supplied: defaulting to UTF-8.
#>                                                              Dirichlet-elicitation 
#> "https://cran.rstudio.com/web/packages/SHELF/vignettes/Dirichlet-elicitation.html" 
#>                                                              Dirichlet-elicitation 
#>  "https://cran.rstudio.com/web/packages/SHELF/vignettes/Dirichlet-elicitation.Rmd" 
#>                                                               plain; charset=utf-8 
#>            "https://cran.rstudio.com/web/packages/SHELF/text/plain; charset=utf-8" 
#>                                                              Dirichlet-elicitation 
#>    "https://cran.rstudio.com/web/packages/SHELF/vignettes/Dirichlet-elicitation.R" 
#>                                                               plain; charset=utf-8 
#>            "https://cran.rstudio.com/web/packages/SHELF/text/plain; charset=utf-8" 
#>                                                                     SHELF-overview 
#>        "https://cran.rstudio.com/web/packages/SHELF/vignettes/SHELF-overview.html" 
#>                                                                     SHELF-overview 
#>         "https://cran.rstudio.com/web/packages/SHELF/vignettes/SHELF-overview.Rmd" 
#>                                                               plain; charset=utf-8 
#>            "https://cran.rstudio.com/web/packages/SHELF/text/plain; charset=utf-8" 
#>                                                                     SHELF-overview 
#>           "https://cran.rstudio.com/web/packages/SHELF/vignettes/SHELF-overview.R" 
#>                                                               plain; charset=utf-8 
#>            "https://cran.rstudio.com/web/packages/SHELF/text/plain; charset=utf-8"
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

No branches or pull requests

1 participant