knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

projectr

This package provides tools to facilitate a data analysis project. These tools include a function to structure the project directory, a function to set up a data directory external to the project directory and a function to get the absolute path to files in the data directory.

Installation

This package is not currently available from CRAN. To install the package from GitHub run:

# install.packages("devtools")
devtools::install_github("mt-edwards/projectr")

Example

To structure a new data analysis project, in the console, run:

projectr::structure_project()

To set a data directory (e.g. ~/documents/data) external to the project directory, in the console, run:

projectr::set_data_directory("~/documents/data")

To get the absolute path to a file (e.g. file.csv) in the data directory run:

projectr::data_directory_path("file.csv")


mt-edwards/projectr documentation built on July 3, 2019, 3:22 p.m.