The function permits an exported WinBUGS map to be read into an sp package class SpatialPolygons object.

readSplus(file, proj4string = CRS(as.character(NA)))

## Arguments

file name of file Object of class '"CRS"'; holding a valid proj4 string

## Value

readSplus returns a SpatialPolygons object

## Author

Virgilio Gomez Rubio <Virgilio.Gomez@uclm.es>

## Note

In the example, taken from the GeoBUGS manual, the smaller part of area1 has a counter-clockwise ring direction in the data, while other rings are clockwise. This implies that it is a hole, and does not get filled. Errant holes may be filled using checkPolygonsHoles. The region labels are stored in the ID slots of the Polygons objects.

map2SpatialPolygons

## Examples

if (rgeosStatus()) {