From mauricio.zambrano at jrc.ec.europa.eu  Mon Jul 25 10:49:29 2011
From: mauricio.zambrano at jrc.ec.europa.eu (Mauricio Zambrano-Bigiarini)
Date: Mon, 25 Jul 2011 10:49:29 +0200
Subject: [Rd] Start-up messages when Importing from a package
In-Reply-To: <alpine.LFD.2.02.1107231602100.31769@gannet.stats.ox.ac.uk>
References: <4E292DEB.5070403@jrc.ec.europa.eu>
	<alpine.LFD.2.02.1107231602100.31769@gannet.stats.ox.ac.uk>
Message-ID: <4E2D2E19.3080908@jrc.ec.europa.eu>

Prof Brian Ripley wrote:
> The message is from maptools (as it says), not sp.

Thank you very much prof. Ripley for pointing out my error.

> 
> 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 ....
> 

I'll try.

All the best,

Mauricio


-- 
=======================================================
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 the writer
and may not in any circumstances be regarded as stating
an official position of the European Commission."
=======================================================
Linux user #454569 -- Ubuntu user #17469
=======================================================
"There is only one pretty child in the world,
and every mother has it."
(Chinese Proverb)

> 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
>>
>



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