[R-sig-Geo] Problems loading hydrosanity package
Roger Bivand
Roger.Bivand at nhh.no
Thu May 28 19:14:51 CEST 2009
On Thu, 28 May 2009, BRWIN338 at aol.com wrote:
> Good Morning:
>
> I need to construct a set of Thiessen Polygons centered around
> approximately 4500 longlat positions in the US. After searching the R
> site, I was going to attempt to use the arealsubPolygons function in the
> hydrosanity package. I am using a Windows system.
>
> When attempting to call the package I get the following error messages
> under both R2.8.1 and R2.9.0.
> ##################################################################
>> require(hydrosanity)
> Loading required package: hydrosanity
> Loading required package: playwith
> Loading required package: lattice
> Loading required package: cairoDevice
> Error in inDL(x, as.logical(local), as.logical(now), ...) :
> unable to load shared library
> 'C:/PROGRA~1/R/R-28~1.1/library/cairoDevice/libs/cairoDevice.dll':
> LoadLibrary failure: The specified module could not be found.
>
>
> Error: package 'cairoDevice' could not be loaded
> ###################################################################
> I have tried downloading the package and it's dependencies from several
> locations and get the same errors each time.
>
> Any suggestions with respect to this package or others that I might use to
> construct my polygons would be appreciated. I need a set of polygons that
> cover the entire US county polygon.
The package description does say that it is "under development and should
not be considered stable", seems honest. Look at the code in its URL:
http://code.google.com/p/hydrosanity/source/browse/trunk/R/spatial_functions.R
find the function and its dependencies, load sp first, and probably a
matrix of boundary coordinates for a representation that has a coercion
method to gpc.poly, your point matrix, a vector of IDs, and source the
function locally. That avoids resolving all the dependencies needed for
the GUI in the package, and ought to work. Watch the min.area.pct=
argument as small polygons may go away.
Should work with some tweaking.
Roger
>
> Joe
> **************Cooking Dinner For Two? Sign Up & Get Immediate Member-Only
> Savings.
> (http://pr.atwola.com/promoclk/100126575x1222652750x1201460983/aol?redir=http:%2F%2Fad.doubleclick.net%2Fclk%3B215225797%3B37274671%3Bq%3Fhttp:%2
> F%2Frecipes.cookingfor2.pillsbury.com%2F%3FESRC%3D934)
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no
More information about the R-sig-Geo
mailing list