From 7e0f227efec2ef81ae9ec6afd9ac13c88859b25b Mon Sep 17 00:00:00 2001
From: Ben Anderson <dataknut@icloud.com>
Date: Fri, 27 Apr 2018 13:45:57 +1200
Subject: [PATCH] added documentation

---
 greenGridr/man/findParentDirectory.Rd | 19 +++++++++++++++++++
 greenGridr/man/list1mGridSpyFiles.Rd  | 21 +++++++++++++++++++++
 greenGridr/man/myRequiredPackages.Rd  | 27 +++++++++++++++++++++++++++
 greenGridr/man/tidyNum.Rd             | 17 +++++++++++++++++
 4 files changed, 84 insertions(+)
 create mode 100644 greenGridr/man/findParentDirectory.Rd
 create mode 100644 greenGridr/man/list1mGridSpyFiles.Rd
 create mode 100644 greenGridr/man/myRequiredPackages.Rd
 create mode 100644 greenGridr/man/tidyNum.Rd

diff --git a/greenGridr/man/findParentDirectory.Rd b/greenGridr/man/findParentDirectory.Rd
new file mode 100644
index 0000000..ad0ce5c
--- /dev/null
+++ b/greenGridr/man/findParentDirectory.Rd
@@ -0,0 +1,19 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/utilities.R
+\name{findParentDirectory}
+\alias{findParentDirectory}
+\title{Find the path to Parent Directory}
+\usage{
+findParentDirectory(Parent)
+}
+\arguments{
+\item{Parent}{the name of the directory to which the function should track back.
+Should be the root of the GitHub repository}
+}
+\description{
+Equivalent of \code{findParentDirectory}. Is useful for running a project
+  across multiple computers where the project is stored in different directories.
+}
+\author{
+Mikey Harper, \email{m.harper@soton.ac.uk}
+}
diff --git a/greenGridr/man/list1mGridSpyFiles.Rd b/greenGridr/man/list1mGridSpyFiles.Rd
new file mode 100644
index 0000000..0afffb7
--- /dev/null
+++ b/greenGridr/man/list1mGridSpyFiles.Rd
@@ -0,0 +1,21 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/processGridSpyFiles.R
+\name{list1mGridSpyFiles}
+\alias{list1mGridSpyFiles}
+\title{List all available 1 minute grid spy data files from a given path}
+\usage{
+list1mGridSpyFiles(fpath, pattern)
+}
+\arguments{
+\item{fpath}{the name of the directory where the function should look}
+
+\item{pattern}{a pattern to match. Use the pattern to filter e.g. 1m (xx_at1.csv) from 30s () files}
+}
+\description{
+\code{list1mGridSpyFiles}. Lists all available 1 minute grid spy files from data repository. The functions, like most others in this package will fail
+   if you do not have the data in a folder/directory corresponding to 'path'. Code borrows extensively from similar SAVE project function.
+   This could take quite a long time if you have a lot of files.
+}
+\author{
+Ben Anderson, \email{b.anderson@soton.ac.uk}
+}
diff --git a/greenGridr/man/myRequiredPackages.Rd b/greenGridr/man/myRequiredPackages.Rd
new file mode 100644
index 0000000..6787b75
--- /dev/null
+++ b/greenGridr/man/myRequiredPackages.Rd
@@ -0,0 +1,27 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/utilities.R
+\name{myRequiredPackages}
+\alias{myRequiredPackages}
+\title{Installs and loads packages}
+\usage{
+myRequiredPackages(..., repository = "https://cran.rstudio.com")
+}
+\arguments{
+\item{...}{A list of packages}
+
+\item{repository}{The repository to load functions from. Defaults to "https://cran.ma.imperial.ac.uk/"}
+}
+\description{
+\code{myRequiredPackages} checks whether the package is already installed,
+  installing those which are not preinstalled. All the libraries are then load.
+}
+\details{
+Especially useful when running on virtual machines where package installation
+  is not persistent (Like UoS sve). It will fail if the packages need to be
+  installed but there is no internet access
+}
+\author{
+Luke Blunden, \email{lsb@soton.ac.uk} (original)
+
+Michael Harper \email{m.harper@soton.ac.uk} (revised version)
+}
diff --git a/greenGridr/man/tidyNum.Rd b/greenGridr/man/tidyNum.Rd
new file mode 100644
index 0000000..5e5d6c3
--- /dev/null
+++ b/greenGridr/man/tidyNum.Rd
@@ -0,0 +1,17 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/utilities.R
+\name{tidyNum}
+\alias{tidyNum}
+\title{Tidy long numbers}
+\usage{
+tidyNum(number)
+}
+\arguments{
+\item{number}{an input number or list}
+}
+\description{
+\code{tidyNum} reformats long numbers to include commas and prevents scientific formats
+}
+\author{
+Ben Anderson, \email{b.anderson@soton.ac.uk}
+}
-- 
GitLab