繁体   English   中英

在 R 中使用 MODISTools 函数时“找不到对象 'rlang_hash'”

[英]'object 'rlang_hash' not found' when using MODISTools functions in R

我正在尝试按照文档中的步骤操作并使用MODISTools R package 下载土地覆盖数据。

我安装了MODISTools并将库导入到我的 R session

install.packages("MODISTools")
library(MODISTools)

然后,当我尝试运行任何mt_*() function 时,出现以下错误。

mt_products()

encl$ _hash中的错误 (c(encl$ _f_hash , args, lapply(encl$ _additional , : object 'rlang_hash' not found

rlang package 的版本更新到0.4.10工作

尝试了 OP 的代码,它在R 4.0.4rlang version 0.4.10中工作

library(MODISTools)
products <- mt_products()
str(products)
'data.frame':   34 obs. of  4 variables:
 $ product          : chr  "Daymet" "ECO4ESIPTJPL" "ECO4WUE" "MCD12Q1" ...
 $ description      : chr  "Daily Surface Weather Data (Daymet) on a 1-km Grid for North America, Version 4" "ECOSTRESS Evaporative Stress Index PT-JPL (ESI) Daily L4 Global 70 m" "ECOSTRESS Water Use Efficiency (WUE) Daily L4 Global 70 m" "MODIS/Terra+Aqua Land Cover Type (LC) Yearly L3 Global 500 m SIN Grid" ...
 $ frequency        : chr  "1 day" "Varies" "Varies" "1 year" ...
 $ resolution_meters: int  1000 70 70 500 500 500 500 1000 500 500 ...

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM