<Error in curl::curl_fetch_disk(url, x$path, handle = handle): Timeout was reached: Connection timed out after 10000 milliseconds> R 包 SLGA
<Error in curl::curl_fetch_disk(url, x$path, handle = handle): Timeout was reached: Connection timed out after 10000 milliseconds> R Package SLGA
我正在尝试使用 SLGA
包来查找澳大利亚土壤的含沙量。
我在工作中受防火墙保护,因此之前无法从 github 安装软件包,但现在可以从 CRAN 存储库下载。
很遗憾,可能是因为防火墙的原因,我无法使用函数调用数据。
我尝试使用 github 中的一些示例函数和此处的另一个问题并获取所有这些函数的超时时间。
查看其他类似问题似乎是 proxy/firewall/DNS 问题,但我不确定该怎么做,因为我的机器没有管理员权限。
我可以通过我的 IT 团队请求不阻止所需的 URL,但我不确定我应该请求哪个 -
http://www.clw.csiro.au/aclep/soilandlandscapegrid/
要么
http://www.asris.csiro.au/arcgis/rest/services/TERN
要么
其他人?
有什么办法可以做到吗@obrl_soil?
aoi <- c(152.95, -27.55, 153.07, -27.45)
bne_surface_clay <- get_soils_data(product = 'NAT', attribute = 'CLY',
component = 'ALL', depth = 1, aoi = aoi,
write_out = FALSE)
错误:
Error in curl::curl_fetch_disk(url, x$path, handle = handle) :
Timeout was reached: Connection timed out after 10015 milliseconds
我在工作场所遇到过类似问题。代理通常是问题所在,常见的解决方案是添加适当的环境变量。
例如,如果代理 URL 在端口 80 上 proxy.abc.xyz
,您可以定义:
HTTP_PROXY=proxy.abc.xyz:80
HTTPS_PROXY=proxy.abc.xyz:80
这可以在 .Renviron
文件中。或者在 Windows 10 上,您可以在控制面板中打开 "edit the system environment variables"。
我正在尝试使用 SLGA
包来查找澳大利亚土壤的含沙量。
我在工作中受防火墙保护,因此之前无法从 github 安装软件包,但现在可以从 CRAN 存储库下载。
很遗憾,可能是因为防火墙的原因,我无法使用函数调用数据。
我尝试使用 github 中的一些示例函数和此处的另一个问题并获取所有这些函数的超时时间。
查看其他类似问题似乎是 proxy/firewall/DNS 问题,但我不确定该怎么做,因为我的机器没有管理员权限。
我可以通过我的 IT 团队请求不阻止所需的 URL,但我不确定我应该请求哪个 -
http://www.clw.csiro.au/aclep/soilandlandscapegrid/ 要么 http://www.asris.csiro.au/arcgis/rest/services/TERN 要么 其他人?
有什么办法可以做到吗@obrl_soil?
aoi <- c(152.95, -27.55, 153.07, -27.45)
bne_surface_clay <- get_soils_data(product = 'NAT', attribute = 'CLY',
component = 'ALL', depth = 1, aoi = aoi,
write_out = FALSE)
错误:
Error in curl::curl_fetch_disk(url, x$path, handle = handle) : Timeout was reached: Connection timed out after 10015 milliseconds
我在工作场所遇到过类似问题。代理通常是问题所在,常见的解决方案是添加适当的环境变量。
例如,如果代理 URL 在端口 80 上 proxy.abc.xyz
,您可以定义:
HTTP_PROXY=proxy.abc.xyz:80
HTTPS_PROXY=proxy.abc.xyz:80
这可以在 .Renviron
文件中。或者在 Windows 10 上,您可以在控制面板中打开 "edit the system environment variables"。