finding all package::fn changes needed (CRAN error = '::' or ':::' imports not declared from:

296 views
Skip to first unread message

Timothy Bates

unread,
Aug 22, 2015, 3:56:44 PM8/22/15
to devtools
hi,
Submitted package to CRAN (woot!)

I had not rigorously called fns with "package::fn", and also did not `@import everythingFromPackage

The nice CRAN folk were able let me know I had a collection of functions needing selective importation.

try:
import(package1, fn1 fn2)
import(package2, fn1, fn2)

Is there a devtools (or other function) able to return something like that? 
 Would be very handy in tracking down and importing all the little 1-off functions one's package uses

cheers,
t

Hadley Wickham

unread,
Aug 22, 2015, 5:38:26 PM8/22/15
to Timothy Bates, devtools
You should be running R cmd check with r-devel to pick this up. The easiest way to do that is with build_win(). 
Hadley
--
You received this message because you are subscribed to the Google Groups "devtools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdevtools+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
http://had.co.nz/

Timothy Bates

unread,
Aug 22, 2015, 6:02:55 PM8/22/15
to devtools
build_win lists functions that should have been prefixed, but not the package they're in. Often easy, but sometimes not.
 just be great to get it back from local machine as package: fun fun fun
 
something like  `show_missing_import_requests`() function 

On OS X, `devtools::release(path)` does the inverse to build_win: it  says what packages have funs without the necessary :: , but leaves one guessing which functions.

Does anything bring those together?
Reply all
Reply to author
Forward
0 new messages