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

base package links go nowhere #89

Open
jennybc opened this issue Dec 23, 2016 · 2 comments
Open

base package links go nowhere #89

jennybc opened this issue Dec 23, 2016 · 2 comments

Comments

@jennybc
Copy link

jennybc commented Dec 23, 2016

If a package imports a base package (e.g., tools, utils, and the like), the base package will appear in Imports in the right sidebar, as a link, but the link doesn't go anywhere.

Example of such a package:
https://www.r-pkg.org/pkg/R.utils

Example of non-existent link:
https://www.r-pkg.org/pkg/tools

@jennybc
Copy link
Author

jennybc commented Dec 23, 2016

Not clear but maybe this is what you mean in #54?

@nuest
Copy link
Contributor

nuest commented Dec 22, 2017

Intriguing issue... Looking at the different options to detect "base" packages, I made the following little script to find out for which pages this applies:

> i <- installed.packages()
> base_pkgs <- i[ i[,"Priority"] %in% c("base"), c("Package")]
> 
> library("httr")
> base_pages <- lapply(paste0("https://www.r-pkg.org/pkg/", base_pkgs), GET)
> data.frame(url = sapply(base_pages, function(p) { p$url }), status = sapply(base_pages, status_code))
                                   url status
1       https://www.r-pkg.org/pkg/base    404
2   https://www.r-pkg.org/pkg/compiler    404
3   https://www.r-pkg.org/pkg/datasets    404
4   https://www.r-pkg.org/pkg/graphics    404
5  https://www.r-pkg.org/pkg/grDevices    404
6       https://www.r-pkg.org/pkg/grid    200
7    https://www.r-pkg.org/pkg/methods    404
8   https://www.r-pkg.org/pkg/parallel    404
9    https://www.r-pkg.org/pkg/splines    200
10     https://www.r-pkg.org/pkg/stats    404
11    https://www.r-pkg.org/pkg/stats4    404
12     https://www.r-pkg.org/pkg/tcltk    200
13     https://www.r-pkg.org/pkg/tools    404
14     https://www.r-pkg.org/pkg/utils    404

Note that tcltk, splines and grid do have pages already, though they are not particularly useful:

@jennybc @gaborcsardi What information would you expect to be shown here?

@gaborcsardi I might be looking at this the wrong way, the solution might also be to improve the parsing of the existing DESCRIPTION files, e.g. https://stat.ethz.ch/R-manual/R-patched/library/tools/DESCRIPTION

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

2 participants