I am writing an R package and in the following link,
How can I load dependencies in an R package? a response indicates that it is necessary to "add a line in your NAMESPACE file importFrom(ncdf4, nc_open) and then in your code, call the function without the package: nc_open(...)"
and here, How to properly include dependencies in R-package? an user says:
"The NAMESPACE file. Here you declare the packages you need
import(ggplot2) or to avoid namespace clashes
importFrom(ggplot2, geom_point) You can get roxygen2 to maintain the NAMESPACE file using the @import and @importFrom tags."
These recommendations look straightforward. However, as I create NAMESPACE with the r package roxygen2, the file NAMESPACE cannot be edited manually.
Then, how to edit the file NAMESPACE?
Very much thank you in advance