From 37b5837011d9699dc985d1d7b40c0b9d5d609911 Mon Sep 17 00:00:00 2001 From: wenlong-liu Date: Thu, 22 Mar 2018 23:17:19 -0400 Subject: [PATCH] Pass cran checks. --- DESCRIPTION | 18 ++++++++++-------- R/data.R | 4 ++++ Readme.md | 4 ++-- man/us_fertilizer_county.Rd | 4 ++++ man/usfertilizer-package.Rd | 27 +++++++++++++++++++-------- readme.rmd | 2 +- 6 files changed, 40 insertions(+), 19 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 394d731..aefd2a4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,14 +1,16 @@ Package: usfertilizer Type: Package -Title: County-level Estimates of Fertilizer Application in US -Version: 0.1.0 -Author: Wenlong Liu +Title: County-Level Estimates of Fertilizer Application in US +Version: 0.1.1 +Authors@R: c( + person("Wenlong", "Liu", role = c("aut","cre"), + email = 'wliu14@ncsu.edu') + ) Maintainer: Wenlong Liu -Description: Usfertilizer is used to explore and visualize the - county-level estimates of fertilizer, nitrogen and phosphorus, from 1945 - to 2012. The dataset were originally generated by USGS based on the sales - data of commercial fertilizer. See \code{ - [here] }for details. +Description: Compiled and cleaned the county-level estimates of fertilizer, + nitrogen and phosphorus, from 1945 to 2012. The dataset were originally + generated by USGS based on the sales data of commercial fertilizer. + See for details. Usfertilizer utilized the tidyverse to clean the original data and provide user-friendly dataframe. Please note that USGS does not endorse this package and this package does not include manure data. Also data from 1986 is not available for now. diff --git a/R/data.R b/R/data.R index 072247a..11b6dfe 100644 --- a/R/data.R +++ b/R/data.R @@ -19,4 +19,8 @@ #' \item{Farm.Type}{The land use type of fertilizer, e.g. farm and nonfarm} #' ... #' } +#' @examples +#' require(usfertilizer) +#' data(us_fertilizer_county) + "us_fertilizer_county" diff --git a/Readme.md b/Readme.md index cfa5800..6f36e7d 100644 --- a/Readme.md +++ b/Readme.md @@ -10,8 +10,8 @@ Usfertilizer summarized the estimated county level data from USGS and provided a Please note that USGS does not endorse this package and this package does not include manure data. Also data from 1986 is not available for now. -Installment ------------ +Installation +------------ For now, you can install it via my Github Repository. diff --git a/man/us_fertilizer_county.Rd b/man/us_fertilizer_county.Rd index 91bd1ab..24e4620 100644 --- a/man/us_fertilizer_county.Rd +++ b/man/us_fertilizer_county.Rd @@ -27,4 +27,8 @@ This is data adapted from the county-level estimates of fertilizer nitrogen and commacial sales from 1945 to 2012. Please visit [here](https://www.sciencebase.gov/catalog/item/5851b2d1e4b0f99207c4f238) for more details. } +\examples{ + require(usfertilizer) + data(us_fertilizer_county) +} \keyword{datasets} diff --git a/man/usfertilizer-package.Rd b/man/usfertilizer-package.Rd index c5e603b..e33f6d5 100644 --- a/man/usfertilizer-package.Rd +++ b/man/usfertilizer-package.Rd @@ -4,15 +4,26 @@ \name{usfertilizer-package} \alias{usfertilizer} \alias{usfertilizer-package} -\title{usfertilizer: County-level estimates of fertilizer application in US} +\title{usfertilizer: County-Level Estimates of Fertilizer Application in US} \description{ -This package, usfertilizer, is used to explore and visualize the -county-level estimates of fertilizer, nitrogen and phosphorus, from 1987 -to 2012. The dataset were originally generated by USGS based on the sales -data of commecial fertilizer. See \code{ -[here](https://www.sciencebase.gov/catalog/item/5851b2d1e4b0f99207c4f238/) }for details. +Compiled and cleaned the county-level estimates of fertilizer, +nitrogen and phosphorus, from 1945 to 2012. The dataset were originally +generated by USGS based on the sales data of commercial fertilizer. +See for details. Usfertilizer utilized the tidyverse to clean the original data and provide -user-friendly functitons to select the data of interest, summarize dataset -and gain insights. Please note that USGS does not endorse this package. +user-friendly dataframe. Please note that USGS does not endorse this package and this package +does not include manure data. Also data from 1986 is not available for now. +} +\seealso{ +Useful links: +\itemize{ + \item \url{https://github.com/wenlong-liu/usfertilizer} + \item Report bugs at \url{https://github.com/wenlong-liu/usfertilizer/issues} +} + +} +\author{ +\strong{Maintainer}: Wenlong Liu \email{wliu14@ncsu.edu} + } \keyword{internal} diff --git a/readme.rmd b/readme.rmd index 1717c48..8eef9a5 100644 --- a/readme.rmd +++ b/readme.rmd @@ -20,7 +20,7 @@ Usfertilizer summarized the estimated county level data from USGS and provided a Please note that USGS does not endorse this package and this package does not include manure data. Also data from 1986 is not available for now. -## Installment +## Installation For now, you can install it via my Github Repository. ```{r, eval=FALSE}