Hello,
I received the following response from CRAN after submitting my package:
Thanks, we see:
Found the following (possibly) invalid file URI:
URI: %5B
From: inst/doc/GGIR.html
Please fix and resubmit.
Link to win-builder log:
https://win-builder.r-project.org/incoming_pretest/GGIR_2.6-0_20220201_151400/Windows/00check.log
May I assume that this relates to a link inside my package vignette?
My vignette has many links of various types. How can I find out which one
is the problematic one? For example, does %5B provide an indication of the
location in the code or does it tell me the type of link (internal link to
file, internal link to vignette section, or external url)?
My vignette code is here:
https://github.com/wadpac/GGIR/blob/master/vignettes/GGIR.Rmd
Any help will be much appreciated,
Vincent
[R-pkg-devel] invalid file URI: 5%B
4 messages · Vincent van Hees, Enrico Schumann, Ivan Krylov
On Wed, 02 Feb 2022, Vincent van Hees writes:
Hello,
I received the following response from CRAN after submitting my package:
Thanks, we see:
Found the following (possibly) invalid file URI:
URI: %5B
From: inst/doc/GGIR.html
Please fix and resubmit.
Link to win-builder log:
https://win-builder.r-project.org/incoming_pretest/GGIR_2.6-0_20220201_151400/Windows/00check.log
May I assume that this relates to a link inside my package vignette?
My vignette has many links of various types. How can I find out which one
is the problematic one? For example, does %5B provide an indication of the
location in the code or does it tell me the type of link (internal link to
file, internal link to vignette section, or external url)?
My vignette code is here:
https://github.com/wadpac/GGIR/blob/master/vignettes/GGIR.Rmd
Any help will be much appreciated,
Vincent
URLencode("[", reserved = TRUE)
## [1] "%5B"
Do you have any links with brackets?
Enrico Schumann Lucerne, Switzerland http://enricoschumann.net
On Wed, 2 Feb 2022 10:46:57 +0100
Vincent van Hees <vincentvanhees at gmail.com> wrote:
May I assume that this relates to a link inside my package vignette?
That's true.
My vignette has many links of various types. How can I find out which one is the problematic one?
Take a look at inst/doc/GGIR.html in the R CMD build output and search for "%5B".
For example, does %5B provide an indication of the location in the code or does it tell me the type of link (internal link to file, internal link to vignette section, or external url)?
Unfortunately, there's no indication of the location. According to the code of R CMD check (src/library/tools/R/QC.R in the R source code), "%5B" is the whole link. Apparently, a square bracket got wrongly interpreted as a link destination somewhere inside your document. Most likely, the link on line 1158 has an unnecessary "[": https://github.com/wadpac/GGIR/blob/master/vignettes/GGIR.Rmd#L1158
Best regards, Ivan
That fixed the issue. Thanks a lot Ivan and Enrico!
On Wed, 2 Feb 2022 at 11:07, Ivan Krylov <krylov.r00t at gmail.com> wrote:
On Wed, 2 Feb 2022 10:46:57 +0100 Vincent van Hees <vincentvanhees at gmail.com> wrote:
May I assume that this relates to a link inside my package vignette?
That's true.
My vignette has many links of various types. How can I find out which one is the problematic one?
Take a look at inst/doc/GGIR.html in the R CMD build output and search for "%5B".
For example, does %5B provide an indication of the location in the code or does it tell me the type of link (internal link to file, internal link to vignette section, or external url)?
Unfortunately, there's no indication of the location. According to the code of R CMD check (src/library/tools/R/QC.R in the R source code), "%5B" is the whole link. Apparently, a square bracket got wrongly interpreted as a link destination somewhere inside your document. Most likely, the link on line 1158 has an unnecessary "[": https://github.com/wadpac/GGIR/blob/master/vignettes/GGIR.Rmd#L1158 -- Best regards, Ivan