Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CRAN检查中的URL无效_R_Cran - Fatal编程技术网

CRAN检查中的URL无效

CRAN检查中的URL无效,r,cran,R,Cran,我正在尝试更新CRAN中的一个包,但出现以下错误: Found the following (possibly) invalid URLs: URL: https://doi.org/10.1175/1520-0469(1985)042<0217:OTTDPO>2.0.CO;2 From: man/EPflux.Rd Status: Error Message: libcurl error code 35: schannel: next I

我正在尝试更新CRAN中的一个包,但出现以下错误:

Found the following (possibly) invalid URLs:
  URL: https://doi.org/10.1175/1520-0469(1985)042<0217:OTTDPO>2.0.CO;2
    From: man/EPflux.Rd
    Status: Error
    Message: libcurl error code 35:
        schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326) - This error usually occurs when a fatal SSL/TLS alert is received (e.g. handshake failed).

关于如何解决这个问题有什么建议吗?

我认为发生这种情况的原因是

https://doi.org/10.1175/1520-0469(1985)042<0217:OTTDPO>2.0.CO;2
您可以尝试将URL更改为
https://journals.ametsoc.org/view/journals/atsc/42/3/1520-0469_1985_042_0217_ottdpo_2_0_co_2.xml
看看是否通过了检查

另一种可能性 发件人):

一些(DOI)需要编码,以便在URL形式中使用DOI时能够正确工作

因此,您可以先对url进行编码

URLencode("https://doi.org/10.1175/1520-0469(1985)042<0217:OTTDPO>2.0.CO;2")
[1] "https://doi.org/10.1175/1520-0469(1985)042%3C0217:OTTDPO%3E2.0.CO;2"
URLencode(“https://doi.org/10.1175/1520-0469(1985)0422.0.CO;2“
[1] "https://doi.org/10.1175/1520-0469(1985)042%3C0217:OTTDPO%3E2.0.CO;2“
另请注意:

我们强烈建议在DOI名称中仅使用以下字符:“0–9”、“a–z”和“-./”

因此,也许那些注释可以被安全地忽略。我把包裹寄给了克兰,并被接受了


那么,答案就是忽略这些注释。

您是否每次运行CRAN检查时都会收到该错误?我问的原因是因为我第一次访问
https://doi.org/10.1175/1520-0469(1985)0422.0.CO;2
加载花了很长时间,在检查过程中可能超时。但第二次和第三次都很快。因此,检查可能认为它没有加载,因此无效。我还注意到,当使用
xml2::read_html(“https://doi.org/10.1175/1520-0469(1985)0422.0.CO;2“
。尽管CRAN check可能使用的不是
xml2::read_html()
,但访问页面时可能会遇到类似的困难。错误表明这是服务器端SSL错误(),而与URL编码无关。我可以用
curl-L'从命令行复制它https://doi.org/10.1175/1520-0469(1985)0422.0.CO;2'
,但5次中只有1次。我正在尝试,无法得到错误。它总是加载网页。是的,作为最后一个资源我会,但我认为链接到文档的“正确”方式是通过DOI,因为日志链接将来可能会改变。我的包中还有其他没有失败的doi链接@ElioCampitelli您能否发布一个到类似链接的链接,这样我们就可以进行比较不幸的是,编码的URL引发了其他错误:
E>输入意外结束(在“waves.Rd:141:204处打开的带引号的字符串”中)
@ElioCampitelli可能是CRAN检查强制ssl。我完全没有想法……不过,谢谢你的想法:)我可能需要与CRAN检查一下。这太棒了,很好!
https://journals.ametsoc.org/view/journals/atsc/42/3/1520-0469_1985_042_0217_ottdpo_2_0_co_2.xml
URLencode("https://doi.org/10.1175/1520-0469(1985)042<0217:OTTDPO>2.0.CO;2")
[1] "https://doi.org/10.1175/1520-0469(1985)042%3C0217:OTTDPO%3E2.0.CO;2"