Fixed documentation.
authorFrederik Vanrenterghem <frederikv@fairgofinance.com.au>
Tue, 10 May 2016 12:35:20 +0000 (20:35 +0800)
committerFrederik Vanrenterghem <frederikv@fairgofinance.com.au>
Tue, 10 May 2016 12:35:20 +0000 (20:35 +0800)
DESCRIPTION
NAMESPACE
R/getRemainingOpDays.R
man/getRemainingOpDays.Rd [new file with mode: 0644]
operatingdays.Rproj

index 03aa672ae30dbe8124932703734ea4ab89025d08..02acffb790ea562677729732a12fcd63d8c8a0a6 100644 (file)
@@ -4,7 +4,10 @@ Title: Return Number of Operating Days in Month
 Version: 0.1.0
 Author: Frederik Vanrenterghem
 Maintainer: Frederik Vanrenterghem <frederik@vanrenterghem.biz>
-Description: Return the number of operating days in a given month. Currently returns remaining days in current month.
-Depends: RCurl
+Description: Return the number of operating days in a given month. Currently
+    returns remaining days in current month.
+Depends:
+    RCurl
 License: GPL-3
 LazyData: TRUE
+RoxygenNote: 5.0.1
index d75f824ec6278db24891505b14ab3d915514dba7..6ae926839dd1829f1016a96f766d970ff184ad97 100644 (file)
--- a/NAMESPACE
+++ b/NAMESPACE
@@ -1 +1,2 @@
-exportPattern("^[[:alpha:]]+")
+# Generated by roxygen2: do not edit by hand
+
index 93256703184ed19984d0bafc48a465a248a33b22..eae5c8716b096264ac45856198364c929d2d6136 100644 (file)
@@ -1,8 +1,13 @@
-# getRemainingOpDays
+#' getRemainingOpDays
 # This is a function that returns the remaining operating days in a month
 # It takes as arguments the country, state, date for which the request is made.
 # It returns a number
 # It currently only supports AU (Australia)
+#' @param country A country - use ISO format (currently only takes AU)
+#' @param state A state - use 2 or 3 letter abbreviation, in capitals
+#' @param date A date from which the remaining operating days in the month will be counted
+#' @return The number of remaining operating days in \code{state}, \code{country} as of \code{date}
+#' @examples getRemainingOpDays("AU","WA","2016-05-10")
 
 getRemainingOpDays <- function(country,state,date) {
   cutoff.time = "15:00"
diff --git a/man/getRemainingOpDays.Rd b/man/getRemainingOpDays.Rd
new file mode 100644 (file)
index 0000000..7e2b271
--- /dev/null
@@ -0,0 +1,25 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/getRemainingOpDays.R
+\name{getRemainingOpDays}
+\alias{getRemainingOpDays}
+\title{getRemainingOpDays}
+\usage{
+getRemainingOpDays(country, state, date)
+}
+\arguments{
+\item{country}{A country - use ISO format (currently only takes AU)}
+
+\item{state}{A state - use 2 or 3 letter abbreviation, in capitals}
+
+\item{date}{A date from which the remaining operating days in the month will be counted}
+}
+\value{
+The number of remaining operating days in \code{state}, \code{country} as of \code{date}
+}
+\description{
+getRemainingOpDays
+}
+\examples{
+getRemainingOpDays("AU","WA","2016-05-10")
+}
+
index 497f8bfcfb9d13ad61d14d79963641e9aeab41b0..270314b87d171300f76501b32e8a0354926d9c84 100644 (file)
@@ -18,3 +18,4 @@ StripTrailingWhitespace: Yes
 BuildType: Package
 PackageUseDevtools: Yes
 PackageInstallArgs: --no-multiarch --with-keep.source
+PackageRoxygenize: rd,collate,namespace