更新时间:2022-05-23 22:37:47
要么:
ncdf4::nc_open(...)
或者:
importFrom(ncdf4, nc_open)
中添加一行,然后在您的代码中,调用不带包的函数:nc_open(...)
importFrom(ncdf4, nc_open)
and then in your code, call the function without the package: nc_open(...)
除了为您要导入的每个函数添加 importFrom
行之外,您还可以使用 import(ncdf4)
从该包中获取所有内容.
Rather than adding an importFrom
line for every function you want to import, you can also use import(ncdf4)
to snarf everything from that package.