There was a glitch with the RGTK2 /w libglade installation. Works now, thanks!
However, hydrosanity makes use of the choose.files() function
Error in openProject() : could not find function "choose.files"
which is windows specific
http://www.mail-archive.com/r-help@stat.math.ethz.ch/msg20027.html
Jun 22, 2009
issue 17
(dependeny problem ?) commented on by foolish.android
- Ah, I see, sorry.
The function "gladeXMLNew" is exported from the RGtk2 package, at least in the
current version 2.12.13. Please check that you have a recent version of the RGtk2
package. Otherwise, you might try 'library(RGtk2)' to see if that fixes it.
Ah, I see, sorry.
The function "gladeXMLNew" is exported from the RGtk2 package, at least in the
current version 2.12.13. Please check that you have a recent version of the RGtk2
package. Otherwise, you might try 'library(RGtk2)' to see if that fixes it.
issue 17
(dependeny problem ?) Status changed by foolish.android
- I don't understand how you can be using hydrosanity 0.8.76 with R 2.1, since that
version of hydrosanity Depends on R >= 2.5.0
(see http://cran.r-project.org/web/packages/hydrosanity/)
Also the current version of RGtk2 requires R >= 2.5.0
So I recommend upgrading R and the RGtk2 package; please do let me know if it still
does not work.
Status: WontFix
I don't understand how you can be using hydrosanity 0.8.76 with R 2.1, since that
version of hydrosanity Depends on R >= 2.5.0
(see http://cran.r-project.org/web/packages/hydrosanity/)
Also the current version of RGtk2 requires R >= 2.5.0
So I recommend upgrading R and the RGtk2 package; please do let me know if it still
does not work.
Status: WontFix
Jun 19, 2009
issue 17
(dependeny problem ?) reported by rtaut...@scripps.edu
- What steps will reproduce the problem?
1. install.packages("hydrosanity",dep=T)
2. library(hydrosanity)
3. hydrosanity()
What is the expected output? What do you see instead?
> library(hydrosanity)
Loading required package: playwith
Loading required package: lattice
Loading required package: cairoDevice
Loading required package: gWidgetsRGtk2
Loading required package: gWidgets
Loading required package: grid
Hydrosanity: an interface for exploring hydrological time series.
Version 0.8.76. (c) 2007 Felix Andrews <felix@nfrac.org>
GUI based on Rattle (c) 2006 Graham.Williams@togaware.com
Type "hydrosanity()" to start the graphical user interface.
Warning message:
In namespaceImportFrom(self, asNamespace(ns)) :
replacing previous import: update
> hydrosanity()
Error in hydrosanity() : could not find function "gladeXMLNew"
What version of the product are you using? On what operating system?
Version 0.8.76. / Ubuntu 9.04 / R2.10a
What steps will reproduce the problem?
1. install.packages("hydrosanity",dep=T)
2. library(hydrosanity)
3. hydrosanity()
What is the expected output? What do you see instead?
> library(hydrosanity)
Loading required package: playwith
Loading required package: lattice
Loading required package: cairoDevice
Loading required package: gWidgetsRGtk2
Loading required package: gWidgets
Loading required package: grid
Hydrosanity: an interface for exploring hydrological time series.
Version 0.8.76. (c) 2007 Felix Andrews <felix@nfrac.org>
GUI based on Rattle (c) 2006 Graham.Williams@togaware.com
Type "hydrosanity()" to start the graphical user interface.
Warning message:
In namespaceImportFrom(self, asNamespace(ns)) :
replacing previous import: update
> hydrosanity()
Error in hydrosanity() : could not find function "gladeXMLNew"
What version of the product are you using? On what operating system?
Version 0.8.76. / Ubuntu 9.04 / R2.10a
Mar 24, 2009
issue 16
(Error generated when calculating areal rainfall using Thiess...) Status changed by foolish.android
- fixed in the development version... not sure when I will get around to making a release.
Status: Fixed
fixed in the development version... not sure when I will get around to making a release.
Status: Fixed
Mar 19, 2009
issue 16
(Error generated when calculating areal rainfall using Thiess...) reported by mark.thyer
- What steps will reproduce the problem?
1. Open MODSIM07.hydrosanity project
2. Go to Areal rainfall tab, select two or more gauges from list at left
3. Under "Areal rainfall from, gauges, weighted by area" choose either
"Thiessen Polygon" or "Calculate areal rainfall series"
What is the expected output? What do you see instead?
When choosing "Thiessen polygon" this is the error:
A command has failed. The error was:
cannot coerce type 'S4' to vector of type 'any'
The error occurred in:
as.vector(x, mode)
The original command was:
{
tmp.poly <- hsp$catchment@polygons[[1]]@Polygons[[1]]
tmp.subPolys <- arealSubPolygons(tmp.locs, boundary =
coordinates(tmp.poly))
}
When choosing "Calculate areal rainfall series" this is the error:
A command has failed. The error was:
cannot coerce type 'S4' to vector of type 'any'
The error occurred in:
as.vector(x, mode)
The original command was:
{
tmp.poly <- hsp$catchment@polygons[[1]]@Polygons[[1]]
tmp.subPolys <- arealSubPolygons(tmp.locs, boundary =
coordinates(tmp.poly))
tmp.subAreas <- sapply(tmp.subPolys@polygons, getPolygonAreaSlot)
tmp.areaFrac <- tmp.subAreas/tmp.poly@area
tmp.polyNames <- getSpPPolygonsIDSlots(tmp.subPolys)
tmp.data <- lapply(hsp$data[tmp.polyNames], window, hsp$timePeriod[1],
hsp$timePeriod[2])
tmp.data <- lapply(tmp.data, quick.disaccumulate.timeblob)
tmp.sync <- sync.timeblobs(tmp.data)
tmp.synctime <- tmp.sync$Time
tmp.sync <- tmp.sync[-1]
}
I think the error is caused by arealSubPolygons function
What version of the product are you using? On what operating system?
Output from SessionInfo:
R version 2.8.1 (2008-12-22)
i386-pc-mingw32
locale:
LC_COLLATE=English_Australia.1252;LC_CTYPE=English_Australia.1252;LC_MONETARY=English_Australia.1252;LC_NUMERIC=C;LC_TIME=English_Australia.1252
attached base packages:
[1] stats graphics grDevices datasets grid utils methods
base
other attached packages:
[1] gpclib_1.4-3 tripack_1.2-11 sp_0.9-32
hydrosanity_0.8.76
[5] playwith_0.9-43 gWidgetsRGtk2_0.0-51 gWidgets_0.0-35
cairoDevice_2.9-2
[9] lattice_0.17-20 rcom_2.0-4 rscproxy_1.0-12
loaded via a namespace (and not attached):
[1] gridBase_0.4-3 reshape_0.8.2 RGtk2_2.12.9 tools_2.8.0
Please provide any additional information below.
What steps will reproduce the problem?
1. Open MODSIM07.hydrosanity project
2. Go to Areal rainfall tab, select two or more gauges from list at left
3. Under "Areal rainfall from, gauges, weighted by area" choose either
"Thiessen Polygon" or "Calculate areal rainfall series"
What is the expected output? What do you see instead?
When choosing "Thiessen polygon" this is the error:
A command has failed. The error was:
cannot coerce type 'S4' to vector of type 'any'
The error occurred in:
as.vector(x, mode)
The original command was:
{
tmp.poly <- hsp$catchment@polygons[[1]]@Polygons[[1]]
tmp.subPolys <- arealSubPolygons(tmp.locs, boundary =
coordinates(tmp.poly))
}
When choosing "Calculate areal rainfall series" this is the error:
A command has failed. The error was:
cannot coerce type 'S4' to vector of type 'any'
The error occurred in:
as.vector(x, mode)
The original command was:
{
tmp.poly <- hsp$catchment@polygons[[1]]@Polygons[[1]]
tmp.subPolys <- arealSubPolygons(tmp.locs, boundary =
coordinates(tmp.poly))
tmp.subAreas <- sapply(tmp.subPolys@polygons, getPolygonAreaSlot)
tmp.areaFrac <- tmp.subAreas/tmp.poly@area
tmp.polyNames <- getSpPPolygonsIDSlots(tmp.subPolys)
tmp.data <- lapply(hsp$data[tmp.polyNames], window, hsp$timePeriod[1],
hsp$timePeriod[2])
tmp.data <- lapply(tmp.data, quick.disaccumulate.timeblob)
tmp.sync <- sync.timeblobs(tmp.data)
tmp.synctime <- tmp.sync$Time
tmp.sync <- tmp.sync[-1]
}
I think the error is caused by arealSubPolygons function
What version of the product are you using? On what operating system?
Output from SessionInfo:
R version 2.8.1 (2008-12-22)
i386-pc-mingw32
locale:
LC_COLLATE=English_Australia.1252;LC_CTYPE=English_Australia.1252;LC_MONETARY=English_Australia.1252;LC_NUMERIC=C;LC_TIME=English_Australia.1252
attached base packages:
[1] stats graphics grDevices datasets grid utils methods
base
other attached packages:
[1] gpclib_1.4-3 tripack_1.2-11 sp_0.9-32
hydrosanity_0.8.76
[5] playwith_0.9-43 gWidgetsRGtk2_0.0-51 gWidgets_0.0-35
cairoDevice_2.9-2
[9] lattice_0.17-20 rcom_2.0-4 rscproxy_1.0-12
loaded via a namespace (and not attached):
[1] gridBase_0.4-3 reshape_0.8.2 RGtk2_2.12.9 tools_2.8.0
Please provide any additional information below.