我在使用taxize R软件包时遇到了错误,并将其范围缩小到curl::curl_fetch_memory
返回的错误。我发现以下代码在我的linux计算机上返回错误,但在Mac上运行正常。
x <- curl::curl_fetch_memory('https://www.google.com')
Error in curl::curl_fetch_memory("https://www.google.com") :
Unrecognized content encoding type. libcurl understands identity content encodings.
我检查了我的libcurl版本(通过linuxbrew安装):
$ curl-config --version
libcurl 7.63.0`
这是我的R会话信息:
R version 3.5.2 (2018-12-20)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux Workstation 7.6 (Maipo)
Matrix products: default
BLAS/LAPACK: /home/linuxbrew/.linuxbrew/Cellar/openblas/0.3.5/lib/libopenblasp-r0.3.5.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] curl_3.3
loaded via a namespace (and not attached):
[1] compiler_3.5.2
您对问题可能有什么想法?谢谢!