[R-pkg-devel] Error from svDialogs unless attached to search path

Georgi Boshnakov georgi.boshnakov at manchester.ac.uk
Wed Mar 28 15:56:42 CEST 2018


"svDialogs" depends on svGUI but doesn't import functions it needs. 
This happens with packages which have not been updated for some time and thus may not conform to the requirements to import stuff even for dependencies.
Try adding "svGUI" to "Depends:" as a temporary measure and contact the author of the package. 
The author of scGUI doesn't need to be told what is needed but for your information
they just need to import the functions used in svDialogs. I run `R CMD check' on svDialogs and it issued numerous warnings about imports. 


-----Original Message-----
From: R-package-devel [mailto:r-package-devel-bounces at r-project.org] On Behalf Of Paul Hibbing
Sent: 28 March 2018 01:40
To: r-package-devel at r-project.org
Subject: [R-pkg-devel] Error from svDialogs unless attached to search path


I need to use dialog boxes in my package by calling functions from the svDialogs package, e.g. svDialogs::dlgInput().

However, I get the below error when I try to use some functions without first attaching svDialogs to the search path with library() or require().

   > # library(svDialogs)
   > svDialogs::dlgInput("Example")
   Error in svDialogs::dlgInput("Example") : attempt to apply non-function

After un-commenting and running the first line, the above code works fine, no error.

The svDialogs package is imported in my NAMESPACE, and I cannot figure out where this error is coming from. As best I can tell, my usage mirrors the cgam package, which imports svDialogs in NAMESPACE, and then calls dlgMessage in the ShapeSelect function.

Any tips on resolving this error are appreciated.

Paul Hibbing

R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

More information about the R-package-devel mailing list