My NAMESPACE
file is:
# Generated by roxygen2 (4.0.1): do not edit by hand
export(ARorderG)
export(VOBoegmc)
export(conddiffG)
................
export(sablon)
Upon trying to check the package via:
devtools::check("C:/Users/erdogan/Documents/Revolution/causfinder")
I received lots of errors like that:
conddiffG: *no visible global function definition for* 'b.star'.
What I have already tried till now: I added the following importfrom to NAMESPACE file
manually:
importFrom(np, b.star)
I did these for all the "...no visible global function definition for..." errors. Then once more I triggered:
devtools::check("C:/Users/erdogan/Documents/Revolution/causfinder")
Unfortunately, all the importFrom statements were automatically deleted from NAMESPACE
file. I read that this is due to re-creation of NAMESPACE
file from roxygen2
.
I needed importFrom statements for successful check of package to send CRAN, but roxygen2
auto-deletes these importFrom statements and left only export statements.
How to prevent deletion of importFrom
statements via using roxygen2
?
Any help is greatly appreciated in advance.