Access to sensor data using the 52°North Sensor Web Client API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
demo
inst
man
tests
vignettes
.Rbuildignore
.gitignore
.travis.yml
DESCRIPTION
LICENSE
NAMESPACE
NEWS
README.md
sensorweb4R.Rproj

README.md

sensorweb4R

R extension package to integrate sensor data into R using the 52°North Sensor Web Client API.

Build Status OpenHUB

Installation

The sensorweb4R package is not on CRAN yet, so please download and install the package manually. The first option is using the package devtools, which also works well for your own fork or development versions by other contributors.

So, if you don't have devtools installed:

install.packages("devtools")

Continue:

devtools::install_github("52North/sensorweb4R")

To also install the vignettes run:

devtools::install_github("52North/sensorweb4R", build_vignettes = TRUE)

Alternatively, you can download the source code and install the package from source. For this to work must have both git and R (see documentation here for Windows) on your path. Then run the following commands:

git clone https://github.com/52North/sensorweb4R
R CMD INSTALL sensorweb4R

Documentation

Demos

Take a look at the demos to see how to use the package:

library(sensorweb4R)
demo(package = "sensorweb4R")

For some of the demo's you will need:

install.packages("maptools")
install.packages("mapdata")
install.packages("rgdal")

On Fedora/RedHat/CentOS you will need the following yum packages to be able to install rgdal:

yum install gdal gdal-devel gdal-static proj-devel proj-epsg

On Mac OS X you will need GDAL e.g. precompiled from here. Depending on the version of the OS, you will probably not find a suitable rgdal in CRAN. To install manually:

  • download "package source" from http://cran.r-project.org/web/packages/rgdal/index.html
  • from a terminal:
cd ~/Downloads/
sudo R CMD INSTALL -configure-args'-with-proj-include=/usr/local/lib' rgdal_0.9-1.tar.gz

Then restart R or RStudio.

Vignette

Futher user documentation is in the R help and the vignettes:

vignette(package = "sensorweb4R")

Reference manual

When installed from source or GitHub, run the command Rd2pdf on the regular command line from the parent directory of the package. This will create the reference manual, which describes all functions in the package:

R CMD Rd2pdf sensorweb4R

Development

Building the documentation

devtools::document()

Contact / Support

Please direct support questions to the 52°North Sensor Web Community mailing list/forum: http://sensorweb.forum.52north.org/ (and read the guidelines beforehand).

Add an issue/comment on GitHub if you found a bug or want to collaborate on new features.

License

This R extension package is licensed under Apache License 2.0.

Documentation (namely the vignettes) are published under CC BY 4.0.