Skip to content
Prev 249015 / 398528 Next

how to check if a library is loaded, from a function

On Jan 31, 2011, at 11:04 PM, Nick Matzke wrote:

            
If a package is already loaded then require() will not load it again.  
I think it is also going to be quiet if it's called in a sourced  
routine, so I would ask whether you have properly tested your claim  
that it "doesn't do anything"? If you start with a clean session and  
source your routine, does the routine fail because the package does  
not load?
30 line sig elided.