在开发R包时,我尝试使用函数usethis::use_import_from()将来自另一个包的单个函数导入到包中,但无论我尝试使用哪种方法:加载usethis或devtools或使用::显式写入名称,该函数都不可用。它在帮助中也不可用。但是,它有很好的文档here,我可以在源代码here中看到它 > usethis::use_import_from("stats", "runif")
Error: 'use_import_from' is not an exported object from 'namespace:usethi