This issue has been there for a while. When click NEWS on the package update list, the pop-up widows show broken links to the update news. The major reason is that the default link set by RStudio miss "news" in the path. For example, when click readr update news, the url path is https://cran.rstudio.com/web/packages/readr/news.html , but the correct one is https://cran.rstudio.com/web/packages/readr/news/news.html . Please help solve this issue. Thanks.
jcblum
January 3, 2019, 5:52am
2
Hi @frankcsliu ! Welcome!
Some version of this problem has been reported at least 3 times on the RStudio issue tracker:
opened 07:59AM - 27 Jun 18 UTC
closed 05:20PM - 03 Jul 18 UTC
bug
<!-- This issue tracker is for bugs and feature requests in the RStudio IDE. If … you're having trouble with R itself or an R package, see https://www.r-project.org/help.html, and if you want to ask a question rather than report a bug, go to https://community.rstudio.com/. Finally, if you use RStudio Server Pro, get in touch with our Pro support team at support@rstudio.com.
If you're here to report a bug in RStudio, please take the time to fill out as much of the below as you're able so that we can reproduce the problem you're seeing. -->
### System details
RStudio Edition : Desktop
RStudio Version : 1.1 and 1.2
OS Version : Windows 10
R Version : 3.5.0
In the Update Packages window, the NEWS icon will link to, for example, https://cran.rstudio.com/web/packages/nycflights13/news.html, instead of https://cran.rstudio.com/web/packages/nycflights13/news/news.html, which is the correct page for the NEWS file.
opened 01:04AM - 01 Sep 18 UTC
closed 02:39AM - 05 Sep 18 UTC
### System details
RStudio Edition : Desktop
RStudio Version : 1.1.4… 56
OS Version : Windows 10/Ubuntu 18.04
R Version : 3.5.1
### Steps to reproduce the problem
This is more of a feature request than an issue. When updating package via the RStudio the GUI, the location associated with the links to the `NEWS` files seem to break whenever the files were built from R markdown files into suitable HTML output.
- (assuming your `roxygen2` package is out of date)
- Open RStudio, and click `Tools -> Check for Package Update`
- Click the NEWS file box to inspect published NEWS file for `roxygen2`. This gives
https://cran.rstudio.com/web/packages/roxygen2/news.html
which does not exist.
This behaviour is true regardless of the repository location selected.
### Describe the behavior you expected
- The correct link link should have been:
https://cran.rstudio.com/web/packages/roxygen2/news/news.html
which renders correctly given the extra `/news/` element.
I believe this fix should be simple given a test as to whether a `/news` directory was defined on the server in the root; otherwise, the plain text `NEWS` file could be directed to, as seems to be the current behaviour anyway (e.g., the news file for John Fox's `car` package is correctly linked to).
opened 04:57PM - 27 Oct 18 UTC
closed 04:25PM - 29 Oct 18 UTC
info needed
<!-- This issue tracker is for bugs and feature requests in the RStudio IDE. If … you're having trouble with R itself or an R package, see https://www.r-project.org/help.html, and if you want to ask a question rather than report a bug, go to https://community.rstudio.com/. Finally, if you use RStudio Server Pro, get in touch with our Pro support team at support@rstudio.com.
If you're here to report a bug in RStudio, please take the time to fill out as much of the below as you're able so that we can reproduce the problem you're seeing. -->
### System details
RStudio Edition : Desktop
RStudio Version : 1.1.456
OS Version : Manjaro Linux (.deb RStudio package)
R Version : 3.5.1
### Steps to reproduce the problem
1. Ensuring at least one installed package is not up-to-date, click `Update` on the`Packages` pane (for example, `rlang` and `devtools` needed updates on my system)
1. Click the link icon for the `News` in the latest package version
1. The URL should throw a `404` error.
### Describe the problem in detail
This seems to be that RStudio's `NEWS` URLs are missing another subdirectory; perhaps due to a change in how CRAN pages store their `Materials`?
E.g. for `rlang`, the URL format that RStudio redirects to is:
`https://cran.rstudio.com/web/packages/rlang/news.html`
When the correct URL should be:
`https://cran.rstudio.com/web/packages/rlang/news/news.html`
You can see there is an additional `news/` directory missing.
I am unfamiliar with Java, and so don't want to open a PR for this, but I believe the top of the call stack is [somewhere around here](https://github.com/rstudio/rstudio/blob/b010afce80e563515d2836e01040261311c60422/src/gwt/src/org/rstudio/studio/client/workbench/views/packages/ui/CheckForUpdatesDialog.java#L106).
### Describe the behavior you expected
A correct redirect to `NEWS.html` for the selected package.
<!-- Depending on the problem, the following may also be helpful
1. The output of sessionInfo()
2. The R code in question
3. A diagnostics report; see https://support.rstudio.com/hc/en-us/articles/200321257-Running-a-Diagnostics-Report
Thank you for taking the time to file an issue! -->
You can find out more about why this happens from those links, but the good news is that it sounds like this is working much better in the RStudio 1.2 Preview release .
1 Like
system
Closed
January 24, 2019, 6:05am
3
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.