From |kry|ov @end|ng |rom d|@root@org  Thu Sep 12 17:23:02 2024
From: |kry|ov @end|ng |rom d|@root@org (Ivan Krylov)
Date: Thu, 12 Sep 2024 18:23:02 +0300
Subject: [Rd] Can gzfile be given the same method option as file
In-Reply-To: <CWXP123MB6190D38EB374D47862DC5E52D0642@CWXP123MB6190.GBRP123.PROD.OUTLOOK.COM>
References: <CWXP123MB619012B710931D02CF91B812D0642@CWXP123MB6190.GBRP123.PROD.OUTLOOK.COM>
 <20240912172737.1202b2bd@arachnoid>
 <CWXP123MB6190D38EB374D47862DC5E52D0642@CWXP123MB6190.GBRP123.PROD.OUTLOOK.COM>
Message-ID: <20240912182302.5ddbe5a8@arachnoid>

? Thu, 12 Sep 2024 15:06:50 +0000
Simon Andrews <simon.andrews at babraham.ac.uk> ?????:

> > download.file('https://seurat.nygenome.org/azimuth/references/homologs.rds',
> > destfile = "c:/Users/andrewss/homologs.rds", method="libcurl")  
<...>
> status was 'SSL connect error'
> 
> > download.file('https://seurat.nygenome.org/azimuth/references/homologs.rds',
> > destfile = "c:/Users/andrewss/homologs.rds", method="curl")  
<...>
> curl: (35) schannel: next InitializeSecurityContext
> failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - The revocation
> function was unable to check revocation for the certificate.

This extra error code is useful, thank you for trying the "curl"
method. https://github.com/curl/curl/issues/14315 suggests a libcurl
option and a curl command line option.

Does download.file(method = 'curl', extra = '--ssl-no-revoke') work for
you?

Since R-4.2.2, R understands the R_LIBCURL_SSL_REVOKE_BEST_EFFORT
environment variable. Does it help to set it to "TRUE" (e.g. in the
.Renviron file) before invoking download.file(method = "libcurl")?

Some extra context can be found in
news(grepl('R_LIBCURL_SSL_REVOKE_BEST_EFFORT', Text)) and
<https://bugs.r-project.org/show_bug.cgi?id=18379>.

-- 
Best regards,
Ivan



[Rd] Can gzfile be given the same method option as file
Ivan Krylov