[Rd] Start-up messages when Importing from a package

Prof Brian Ripley ripley at stats.ox.ac.uk
Sat Jul 23 17:03:38 CEST 2011


The message is from maptools (as it says), not sp.

No, there is nothing you can do when dependent packages put out 
messages.  You could ask the maintainer not to put the message out 
when rgeos is available ....

On Fri, 22 Jul 2011, Mauricio Zambrano-Bigiarini wrote:

> Dear List,
>
> I'm building a package  that uses 2 functions of the 'sp' package, and I 
> declared them in my NAMESPACE file as follow:
>
>
> importFrom("sp", proj4string, coordinates)
>
>
> The package is built without any problem, but when I load the package, I get 
> the following message:
>
> "
> Loading required package: sp
>
>        Note: polygon geometry computations in maptools
>        depend on the package gpclib, which has a
>        restricted licence. It is disabled by default;
>        to enable gpclib, type gpclibPermit()
>
> Checking rgeos availability as gpclib substitute:
> TRUE
> "
>
>
> However, if I only load the 'sp' package (in a different R session), I don't 
> get any warning message.
>
>
> Is there any way I can prevent the warning message appears when I load my 
> package ?
>
>
> Thanks in advance for any help,
>
>
> Mauricio Zambrano-Bigiairni
> -- 
> =======================================================
> FLOODS Action
> Land Management and Natural Hazards Unit
> Institute for Environment and Sustainability (IES)
> European Commission, Joint Research Centre (JRC)
> webinfo    : http://floods.jrc.ec.europa.eu/
> =======================================================
> DISCLAIMER:\ "The views expressed are purely those of th...{{dropped:11}}
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list