Archives for category: Release

See http://cran.r-project.org/web/packages/sos4R/index.html.

This is a bugfix release to get the package back on CRAN since it was kicked out because of using the deprecated .find.packages(). This function was used in the helper functions sosCheatSheet(), sosChanges()and sosNews() to open up the cheat sheet document and CHANGES/NEWS files from R command line and is now replaced by find.packages(), which is part of the actual public API.

My apologies for the inconvenience caused by this delay – R 3.0.0 is really the version to use right now – but I wanted to get some other bugs fixed and some new features in for the next release, which did not work out so far.

As a lesson from this I now created a proper SVN structure with a branch 0.3 for the current development and reverted the trunk to the version currently on CRAN: https://svn.52north.org/svn/geostatistics/main/sos4R/. This will allow future bugfixing without interfering with currently broken development versions.

A new version of sos4R is uploaded to CRAN as source and should be available soon as binary releases (Windows users – please be patient as always). It is a bugfix release which also includes some small extensions to the vignette. From the NEWS file:

Changes in sos4R Version 0.2-10 – 2012-11-19

  • ADDED function sosCapabilitiesUrl to generate a capabilities request URL in KVP encoding to include in Documentation, e.g. Sweave
  • FIXED rgdal dependency by adding it to suggests list in DESCRIPTION
  • FIXED pegel demo, now using the actual PegelOnline web service
  • FIXED a NOTE about partial argument match in getObservation,SOS_1.0.0 for ‘offering’ to ‘offeringId’: had to use the correct name offeringId when calling .getObservation_1.0.0(…)
  • EXTENDED documentation: added reference to cheat sheet in Vignette, added subsection “Quick Start” to Introduction

The source code is available in the SVN under revision 2213.

Tdoday I made a new release, version 0.2-9. There were some substantial changes under the hood regarding the vignette, but nothing that justified a minor version increase for users. Looking forward to your comments!

Excerpt from the NEWS file:

Changes in sos4R Version 0.2-9 – 2012-08-08

  • ADDED error handling for plotting methods so that plot(sos) does not break if one offering cannot be coerced to spatial
  • ADDED ‘ug/m3’ and ‘http://www.opengis.net/def/property/OGC/0/FeatureOfInterest’ to known list of fields > converted with sosConvertDouble and sosConvertString respectively
  • FIXED weathersos demo
  • MOVED vignette to now suggested directory vignettes/, see http://cran.r-project.org/doc/manuals/R-exts.html#Writing-package-vignettes
  • CHANGED DESCRIPTION file: moved xtable to Suggests – section, set ByteCompile: TRUE, added Authors@R (http://journal.r-project.org/archive/2012-1/RJournal_2012-1_Hornik~et~al.pdf), changed minumum R version to 2.14.0
  • UPDATED cheat sheet and vignette: added link to Bugzilla
  • ADDED minor improvements for sensor description parsing and coecion: sosCoordinates(SensorML) tries to handle ‘easting’/’northing’, ‘longitude’/’latitude’, and ‘elevation’/’altitude’ coordinates and subsequently plotting does not break if ‘x’/’y’ are not given.
  • ADDED function to reset the parsers to default: sos <- SosResetParsingFunctions(sos)

CRAN also had some new policies – well, new to me at least – which caused the process to be more labour-intensive, sadly not only for me. So don’t forget to check http://cran.r-project.org/web/packages/policies.html before submitting!

Download the package from CRAN now :-).

The release 0.2 was supposed to be a major improvement, but there were some problems with the Vignette, still. Mainly because it relied on downloading files from web servers, which again and again caused the package to get warnings on CRAN. Now, the vignette contains an option to rely on files stored in the folder along with it – I honestly doubt that this is a good practice, but I couldn’t find a better solution so far.

But of course there also was a bug introduced with some changes that were supposed to be  bug fixes in version 0.2 and 0.2-01 … anyway, here is an updated package: release 0.2-2, now on CRAN. I am very glad to actually have decent results in the checks across several systems.

From the CHANGES file:
* Fixed in sosGetCRS(...) which breaks if there is no bounding box given in an offering, broke even plot funktion.
* Extended saveOrginal parameter, now it also accepts file names to be used for the document to be saved.
* Extended parsing of SensorML, adding slots for all parsed elements
* Added parsing of exception reports to parseFile(...)
* Based vignette completely on dowloaded files for releases

* Added rudimentary support for KML responses (no parsing)
* Changed parser detection, now uses mime type, too. This changes parser exchangeability for known mime types!
* Added attribute to observations (if response is saved) with file name (sosAttributeFileName)
* Added %\VignetteDepends{xtable} to vignette and depedency xtable as well - got NOTEd for that in R 2.13 checks

I decided it is time to have a minor version increase, so the new package version is 0.2. I want to represent the maturity the software has reached and show (or convince myself 🙂 ) of the stability it has. A new cheat sheet comes with it, too. Apart from little fixes the most important addition for users is probably the function sosCreateTime(...) which allows creating event time lists for GetObservation requests very easily based on character strings:

# Using :: and / as seperators for start and end time:
sosCreateTime(sos = aqe, time = "2007-08-01 08:00::2007-08-05 15:00")
sosCreateTime(sos = aqe, time = "2007-08-01 15:00/2007-08-05 20:00")

# Creating time instants with a relative spatial operator, i.e. TM_Before (first example) or TM_After (second example):
sosCreateTime(sos = aqe, time = "::2007-08-05")
sosCreateTime(sos = aqe, time = "2007-08-05/")

The first count of the lines of code was done when the first presentation of sos4R was given, adding up to 9.213.

In release 0.2, it is 15.636. Not bad.

The changes:

* Bugfix in coordinate order in coercion function for SpatialPointsDataFrame
* Added function sosCreateTime(...)
* Removed require(rgdal) from sosGetCRS(...) and replaced it with a check and potential warning as done in sp:::CRS
* Replacing potentially critical characters from data.frame column names (function .cleanupColumnName(...))
* Added function sosUOM(...) to extract the unit of measurement from objects
* Added summary methods for OmObservation and OmObservationCollection

The next release is out on CRAN, available as source now and the binary releases will follow in the next update cycle. An update is as always highly recommended.

It mostly contains bug fixes so that it works with the upcoming R 2.13.0, and some bugfixing and minor improvements that mostly came up while doing some more testing with different SOS implementations and instances.

* Added file to create demo for Coastlab SOS
* Added sosTime() for signature "list"
* Fixed bug in .getObservation_1.0.0 when calculating length of referenced ObservationProperty
* Fixed bug in getObservation() when offering is of class "character"
* Improvements in verbose-messages
* Improved sosChanges() based on code in vignette()
* Added sosCheatSheet() function that open the cheat sheet PDF, included new cheat sheet in package
* Change in createTime...() functions: removed unneccessary format and parsing -- please observe if everything still works!
* Changed slot type in OmObservation@observedProperty from "SwePhenomenonProperty" to "SwePhenomenonPropertyOrNULL"
* Testing istSOS and fixing bugs
* Added saveOriginal to describeSensor
* Extended parseFile to handle sensor description documents
* Changed vignette to use saved sensor description from file
* Fixes with exports and documentation to adhere to changes for R 2.13.0