项目中使用renv包时无法安装sf包
I can't install the sf package when I use the renv package in a project
我在Rstudio中开始了一个新项目并选择了使用renv的选项。我做的第一件事是输入命令 install.packages('sf'),然后 R 返回了下面的消息。如何进行?
> install.packages('sf')
Error: package 'sf' is not available
In addition: Warning messages:
1: could not retrieve available packages for url "https://cran.rstudio.com/src/contrib"
2: could not retrieve available packages for url "https://cran.rstudio.com/bin/windows/contrib/4.1"
3: curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - A função de revogação não pôde verificar a revogação do certificado.
4: package 'sf' is not available
5: failed to retrieve 'https://rstudio-buildtools.s3.amazonaws.com/renv/mran/packages.rds' [error code 35]
正如@KevinUshey 指出的那样,我可以通过以下方式下载它:
Sys.setenv(RENV_DOWNLOAD_FILE_METHOD = "libcurl")
我在Rstudio中开始了一个新项目并选择了使用renv的选项。我做的第一件事是输入命令 install.packages('sf'),然后 R 返回了下面的消息。如何进行?
> install.packages('sf')
Error: package 'sf' is not available
In addition: Warning messages:
1: could not retrieve available packages for url "https://cran.rstudio.com/src/contrib"
2: could not retrieve available packages for url "https://cran.rstudio.com/bin/windows/contrib/4.1"
3: curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - A função de revogação não pôde verificar a revogação do certificado.
4: package 'sf' is not available
5: failed to retrieve 'https://rstudio-buildtools.s3.amazonaws.com/renv/mran/packages.rds' [error code 35]
正如@KevinUshey 指出的那样,我可以通过以下方式下载它:
Sys.setenv(RENV_DOWNLOAD_FILE_METHOD = "libcurl")