feedr is a package for R. This collection of functions is designed to load, transform and visualize RFID data created when pit-tagged animals are detected by RFID loggers associated with static stations (e.g., seed-feeders, nestboxes, nectar-feeders, etc.).
To ensure the smoothest possible installation, it is recommended that you start a new R session before installing.
feedr is available from github and can be installed directly with the package 'devtools'.
install.packages("devtools") # if not already installed devtools::install_github("animalnexus/feedr")
If you run R on Windows you may run into an error along the lines of:
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), version Check = vI[[j]]) : there is no package called 'Rcpp' ERROR: lazy loading failed for package 'leaflet'
This is a bug with the current version of
devtools which results in some dependencies (other packages used by
feedr) being missed in the installation. A quick fix is to install these packages directly, and then to continue with the
install.packages(c("dplyr", "ggplot2", "htmlwidgets", "scales", "shiny", "stringr")) devtools::install_github("animalnexus/feedr")
On linux systems some packages require libraries to be installed on the system first. For Debian distributions (e.g., Ubuntu, etc.) these can be installed with the following command in the terminal:
sudo apt install libcurl4-openssl-dev libssh2-1-dev libssl-dev
sudo apt install libpq-dev libxml2-dev
We have an extensive tutorial hosted on our github pages: https://animalnexus.github.io/feedr/
There is a demo for using
map_leaflet() which you can run as follows:
demo("demo-leaflet", package = "feedr")