Re: [R] R version 4.2.1 install.packages does not work with IE proxy setting
Hallo Howard Thanks, for the time being the previous workaround with wininet options works for me. I will wait for the new R version and then try to persuade our IT to make relevant changes. Cheers Petr > -Original Message- > From: Howard, Tim G (DEC) > Sent: Thursday, October 6, 2022 1:09 PM > To: r-help@r-project.org; PIKAL Petr > Subject: Re: [R] R version 4.2.1 install.packages does not work with IE proxy > setting > > Petr, > You also might want to check out the bug reported here: > > https://bugs.r-project.org/show_bug.cgi?id=18379 > > it was fixed and the last two comments discuss how to handle it in Windows: > > you add a new User Environment Variable: > R_LIBCURL_SSL_REVOKE_BEST_EFFORT and set it to TRUE > > This fix is in R-4.2.1 Patched (I don't know if it has made it out to the full > distribution) and works in my 'corporate' environment. Perhaps it also applies > to your environment. > > Tim > > > Date: Wed, 5 Oct 2022 10:34:02 + > From: PIKAL Petr > To: Ivan Krylov > Cc: r-help mailing list > Subject: Re: [R] R version 4.2.1 install.packages does not work with > IE proxy setting > Message-ID: > <9b38aacf51d746bb87a9cc3765a16...@srvexchcm1302.precheza.cz> > Content-Type: text/plain; charset="us-ascii" > > Thanks, > > the workaround works but we need try the "permanent" solution with > Renviron.site file in future. > > Cheers > Petr > > > -----Original Message- > > From: Ivan Krylov > > Sent: Tuesday, October 4, 2022 5:43 PM > > To: PIKAL Petr > > Cc: r-help mailing list > > Subject: Re: [R] R version 4.2.1 install.packages does not work with > > IE > proxy > > setting > > > > On Tue, 4 Oct 2022 11:01:14 + > > PIKAL Petr wrote: > > > > > After we installed new R version R 4.2.1 installing packages through > > > IE proxy setting is compromised with warning that R could not > > > connect to server (tested in vanilla R). > > > > R 4.1 deprecated the use of download.file(method = 'wininet'). R 4.2 > switched > > the default download method to 'libcurl' and started giving warnings > > for 'wininet' and http[s]:// URLs. > > > > A workaround to get it working right now would be to set > > options(download.file.method = 'wininet') and live with the resulting > warnings > > while R downloads the files, but a next version of R may remove 'wininet' > > support altogether. > > > > In order to get it working with the 'libcurl' method, you'll need to > provide some > > environment variables to curl: > > https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat > > .ethz.ch%2Fpipermail%2Fr-help%2F2022- > September%2F475917.htmldata= > > > 05%7C01%7Ctim.howard%40dec.ny.gov%7C1b8601d6e602486b347508daa7 > 81d26e%7 > > > Cf46cb8ea79004d108ceb80e8c1c81ee7%7C0%7C0%7C63800647328501003 > 4%7CUnkno > > > wn%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1ha > WwiL > > > CJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=7w1P6Sfu7V3DUM4a3Ez > gmf87bXn8Cn > > C%2FipTvXfBpI0c%3Dreserved=0 > > > > Not sure if libcurl would accept a patch to discover the Windows proxy > settings > > automatically, but I don't think it does that now. > > > > -- > > Best regards, > > Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] R version 4.2.1 install.packages does not work with IE proxy setting
Petr, You also might want to check out the bug reported here: https://bugs.r-project.org/show_bug.cgi?id=18379 it was fixed and the last two comments discuss how to handle it in Windows: you add a new User Environment Variable: R_LIBCURL_SSL_REVOKE_BEST_EFFORT and set it to TRUE This fix is in R-4.2.1 Patched (I don't know if it has made it out to the full distribution) and works in my 'corporate' environment. Perhaps it also applies to your environment. Tim Date: Wed, 5 Oct 2022 10:34:02 + From: PIKAL Petr To: Ivan Krylov Cc: r-help mailing list Subject: Re: [R] R version 4.2.1 install.packages does not work with IE proxy setting Message-ID: <9b38aacf51d746bb87a9cc3765a16...@srvexchcm1302.precheza.cz> Content-Type: text/plain; charset="us-ascii" Thanks, the workaround works but we need try the "permanent" solution with Renviron.site file in future. Cheers Petr > -Original Message- > From: Ivan Krylov > Sent: Tuesday, October 4, 2022 5:43 PM > To: PIKAL Petr > Cc: r-help mailing list > Subject: Re: [R] R version 4.2.1 install.packages does not work with IE proxy > setting > > On Tue, 4 Oct 2022 11:01:14 + > PIKAL Petr wrote: > > > After we installed new R version R 4.2.1 installing packages through > > IE proxy setting is compromised with warning that R could not connect > > to server (tested in vanilla R). > > R 4.1 deprecated the use of download.file(method = 'wininet'). R 4.2 switched > the default download method to 'libcurl' and started giving warnings for > 'wininet' and http[s]:// URLs. > > A workaround to get it working right now would be to set > options(download.file.method = 'wininet') and live with the resulting warnings > while R downloads the files, but a next version of R may remove 'wininet' > support altogether. > > In order to get it working with the 'libcurl' method, you'll need to provide some > environment variables to curl: > https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fpipermail%2Fr-help%2F2022-September%2F475917.htmldata=05%7C01%7Ctim.howard%40dec.ny.gov%7C1b8601d6e602486b347508daa781d26e%7Cf46cb8ea79004d108ceb80e8c1c81ee7%7C0%7C0%7C638006473285010034%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=7w1P6Sfu7V3DUM4a3Ezgmf87bXn8CnC%2FipTvXfBpI0c%3Dreserved=0 > > Not sure if libcurl would accept a patch to discover the Windows proxy settings > automatically, but I don't think it does that now. > > -- > Best regards, > Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] R version 4.2.1 install.packages does not work with IE proxy setting
Thanks, the workaround works but we need try the "permanent" solution with Renviron.site file in future. Cheers Petr > -Original Message- > From: Ivan Krylov > Sent: Tuesday, October 4, 2022 5:43 PM > To: PIKAL Petr > Cc: r-help mailing list > Subject: Re: [R] R version 4.2.1 install.packages does not work with IE proxy > setting > > On Tue, 4 Oct 2022 11:01:14 + > PIKAL Petr wrote: > > > After we installed new R version R 4.2.1 installing packages through > > IE proxy setting is compromised with warning that R could not connect > > to server (tested in vanilla R). > > R 4.1 deprecated the use of download.file(method = 'wininet'). R 4.2 switched > the default download method to 'libcurl' and started giving warnings for > 'wininet' and http[s]:// URLs. > > A workaround to get it working right now would be to set > options(download.file.method = 'wininet') and live with the resulting warnings > while R downloads the files, but a next version of R may remove 'wininet' > support altogether. > > In order to get it working with the 'libcurl' method, you'll need to provide some > environment variables to curl: > https://stat.ethz.ch/pipermail/r-help/2022-September/475917.html > > Not sure if libcurl would accept a patch to discover the Windows proxy settings > automatically, but I don't think it does that now. > > -- > Best regards, > Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] R version 4.2.1 install.packages does not work with IE proxy setting
On Tue, 4 Oct 2022 11:01:14 + PIKAL Petr wrote: > After we installed new R version R 4.2.1 installing packages through > IE proxy setting is compromised with warning that R could not connect > to server (tested in vanilla R). R 4.1 deprecated the use of download.file(method = 'wininet'). R 4.2 switched the default download method to 'libcurl' and started giving warnings for 'wininet' and http[s]:// URLs. A workaround to get it working right now would be to set options(download.file.method = 'wininet') and live with the resulting warnings while R downloads the files, but a next version of R may remove 'wininet' support altogether. In order to get it working with the 'libcurl' method, you'll need to provide some environment variables to curl: https://stat.ethz.ch/pipermail/r-help/2022-September/475917.html Not sure if libcurl would accept a patch to discover the Windows proxy settings automatically, but I don't think it does that now. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] R version 4.2.1 install.packages does not work with IE proxy setting
Dear all After we installed new R version R 4.2.1 installing packages through IE proxy setting is compromised with warning that R could not connect to server (tested in vanilla R). > chooseCRANmirror() Warning: failed to download mirrors file (cannot open URL 'https://cran.r-project.org/CRAN_mirrors.csv'); using local file 'D:/programy/R/doc/CRAN_mirrors.csv' Warning message: In download.file(url, destfile = f, quiet = TRUE) : URL 'https://cran.r-project.org/CRAN_mirrors.csv': status was 'Couldn't connect to server' So install.packages("whatever") also ends with similar warnings. When using directly (without proxy need) install.packages works as expected. In R4.1.0 version it works as expected, without any warnings and packages could be installed smoothly. Is it known issue with this version? Could it be due to somehow corrupted installation? Should we set something differently for this new R version Best regards Petr __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.