Re: [Qgis-user] Problem with HomeRange plugin - rgdal dependencies

2009-02-12 Thread Anne Ghisla
On Wednesday 11 February 2009 18:54:21 John C. Tull wrote:
> I'm also on OS X using qgis built from the current svn trunk. I would
> run a quick test with a point file with 25 points and a single id
> variable (one individual home range to compute). After taking care of
> the rgdal dependency, I am now running into problems with the output
> of the computed shapefile while running the plugin. Here is the error
> I receive in a dialog window:
>
> R error: Error in writeOGR(khr.polygons, dir, name, "ESRI Shapefile") :
> GDAL Error 1: Failed to create file .shp file.
>
> Any ideas on how to fix this?

Not immediately: the plugin structure is dependent of a lot of code. 

I checked if GDAL accepts spaces in the name of the file, and it does. Maybe 
you have choosen a folder where you don't have write access?

I suggest using pure R and try to writeOGR something (you can pick up suitable 
data and examples in rgdal package).

Any other OS X users with similar issues?

regards,

Anne
 

>
> Regards,
> John
>
> On Feb 11, 2009, at 1:41 AM, Anne Ghisla wrote:
> > Hello Sebastian, list members,
> >
> > On Tuesday 10 February 2009 18:48:12 Paolo Cavallini wrote:
> >> Sebastian Cruz ha scritto:
> >>> Hello,
> >>>
> >>> I am having problems installing the rgdal R package, I have
> >>> installed it
> >>> via the package installer. But when I check the package manager it
> >>> shows
> >>> as 'not loaded' and will not allow me to load it. Do I need to
> >>> install
> >>> other packages for it to work?
> >>
> >> If you install it with dep=TRUE, it should install all the
> >> dependencies.
> >> Please keep on writing to the mailing list, ther will be more people
> >> able to reply.
> >
> > Right. Dependencies problems are the most common using HomeRange
> > plugin, as
> > the coupling with R is not so tight: the plugin is not supposed to
> > install
> > missing packages.
> >
> > As Paolo pointed out, it is better to install the required packages
> > with the R
> > command (on Linux you need to be root)
> >
> > install.packages("package_name", dep=TRUE)
> >
> > It will assure the complete set of dependencies. Otherwise you can
> > also check
> > the dependencies on each package's web page and download them
> > manually - but
> > it is more complicated.
> > See also the wiki page [0] of the plugin for more information.
> >
> > all the best,
> > Anne
> >
> > [0] http://wiki.qgis.org/qgiswiki/GSoC2008Rbinding
> > --
> > Please consider the environment before printing this email
> > Please do not send attachments in proprietary formats
> > http://www.gnu.org/philosophy/no-word-attachments.html
> > Use the UNI CEI Standard ISO/IEC 26300:2006
> > ---
> > O< stop html mail - http://www.asciiribbon.org
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user



-- 
Please consider the environment before printing this email
Please do not send attachments in proprietary formats
http://www.gnu.org/philosophy/no-word-attachments.html
Use the UNI CEI Standard ISO/IEC 26300:2006
---
O< stop html mail - http://www.asciiribbon.org


signature.asc
Description: This is a digitally signed message part.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Problem with HomeRange plugin - rgdal dependencies

2009-02-11 Thread John C. Tull

On Feb 11, 2009, at 5:13 PM, Sebastian Cruz wrote:


Hi there,

Thank you for all the advice, unfortunetly I am still unable to  
install the rgdal packages and its dependencies. I get the following  
message when I try:


Warning in install.packages("package_rgdal", dep = TRUE) :
 argument 'lib' is missing: using '/Users/sebastiancruz/Library/R/ 
2.8/library'

Warning message:
package ‘package_rgdal’ is not available
>


That command should be:

install.packages("rgdal", dep = TRUE)

John___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Problem with HomeRange plugin - rgdal dependencies

2009-02-11 Thread Sebastian Cruz

Hi there,

Thank you for all the advice, unfortunetly I am still unable to  
install the rgdal packages and its dependencies. I get the following  
message when I try:


Warning in install.packages("package_rgdal", dep = TRUE) :
  argument 'lib' is missing: using '/Users/sebastiancruz/Library/R/ 
2.8/library'

Warning message:
package ‘package_rgdal’ is not available
>

I have to mention that the package is in the address it mentions, i.e.  
the library in the folder 2.8


I appreciate any help

Sebas


On 11 Feb 2009, at 12:54, John C. Tull wrote:



install.packages("package_name", dep=TRUE)


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Problem with HomeRange plugin - rgdal dependencies

2009-02-11 Thread John C. Tull
I'm also on OS X using qgis built from the current svn trunk. I would  
run a quick test with a point file with 25 points and a single id  
variable (one individual home range to compute). After taking care of  
the rgdal dependency, I am now running into problems with the output  
of the computed shapefile while running the plugin. Here is the error  
I receive in a dialog window:


R error: Error in writeOGR(khr.polygons, dir, name, "ESRI Shapefile") :
GDAL Error 1: Failed to create file .shp file.

Any ideas on how to fix this?

Regards,
John

On Feb 11, 2009, at 1:41 AM, Anne Ghisla wrote:


Hello Sebastian, list members,

On Tuesday 10 February 2009 18:48:12 Paolo Cavallini wrote:

Sebastian Cruz ha scritto:

Hello,

I am having problems installing the rgdal R package, I have  
installed it
via the package installer. But when I check the package manager it  
shows
as 'not loaded' and will not allow me to load it. Do I need to  
install

other packages for it to work?


If you install it with dep=TRUE, it should install all the  
dependencies.

Please keep on writing to the mailing list, ther will be more people
able to reply.


Right. Dependencies problems are the most common using HomeRange  
plugin, as
the coupling with R is not so tight: the plugin is not supposed to  
install

missing packages.

As Paolo pointed out, it is better to install the required packages  
with the R

command (on Linux you need to be root)

install.packages("package_name", dep=TRUE)

It will assure the complete set of dependencies. Otherwise you can  
also check
the dependencies on each package's web page and download them  
manually - but

it is more complicated.
See also the wiki page [0] of the plugin for more information.

all the best,
Anne

[0] http://wiki.qgis.org/qgiswiki/GSoC2008Rbinding
--
Please consider the environment before printing this email
Please do not send attachments in proprietary formats
http://www.gnu.org/philosophy/no-word-attachments.html
Use the UNI CEI Standard ISO/IEC 26300:2006
---
O< stop html mail - http://www.asciiribbon.org
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Problem with HomeRange plugin - rgdal dependencies

2009-02-11 Thread Anne Ghisla
Hello Sebastian, list members,

On Tuesday 10 February 2009 18:48:12 Paolo Cavallini wrote:
> Sebastian Cruz ha scritto:
> > Hello,
> >
> > I am having problems installing the rgdal R package, I have installed it
> > via the package installer. But when I check the package manager it shows
> > as 'not loaded' and will not allow me to load it. Do I need to install
> > other packages for it to work?
>
> If you install it with dep=TRUE, it should install all the dependencies.
> Please keep on writing to the mailing list, ther will be more people
> able to reply.

Right. Dependencies problems are the most common using HomeRange plugin, as 
the coupling with R is not so tight: the plugin is not supposed to install 
missing packages.

As Paolo pointed out, it is better to install the required packages with the R 
command (on Linux you need to be root)

install.packages("package_name", dep=TRUE)

It will assure the complete set of dependencies. Otherwise you can also check 
the dependencies on each package's web page and download them manually - but 
it is more complicated.
See also the wiki page [0] of the plugin for more information.

all the best,
Anne

[0] http://wiki.qgis.org/qgiswiki/GSoC2008Rbinding
-- 
Please consider the environment before printing this email
Please do not send attachments in proprietary formats
http://www.gnu.org/philosophy/no-word-attachments.html
Use the UNI CEI Standard ISO/IEC 26300:2006
---
O< stop html mail - http://www.asciiribbon.org


signature.asc
Description: This is a digitally signed message part.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user