ProjectTemplate0.11.0 package

Automates the Creation of New Statistical Analysis Projects

translate.dcf

Read a DCF file into an R list.

internal.unload.project

Unload the project variables keeping the data

internal.var.diff.from

Compare sets of variable names

internal.write.cache

Write a variable and its metadata to cache

add.extension

Associate a reader function with an extension.

cache.name

Translate a variable name into a file name for caching.

cache.project

Cache a project's data sets in binary format.

internal.read.cache.info

Read metadata for a variable in the cache

add.config

Add project specific config to the global config

internal.remove.sticky.vars

Remove variables to keep from a list of candidates for removal

cache

Cache a data set for faster loading.

clean.variable.name

Translate a file name into a valid R variable name.

clear.cache

Clear data sets from the cache

clear

Clear objects from the global environment

create.project

Create a new project.

create.template

Create a new template

internal.require.package

Require internal package

get.project

Show information about the current project.

internal.attach.or.add.namespace

Attach a package or add a namespace

internal.cache.filename

Construct the file names for the cache and hash

internal.cache.format

Get configured cache file format strategy

internal.cache.hash

Calculate the hash of the data stored in a variable

internal.cache.status

Print the current cache status

internal.cached.variables

List all cached variables

internal.check.version

Compare the project version with the current ProjectTemplate version

internal.convert.to.data.table

Convert one or more data sets to data.tables

internal.convert.to.tibble

Convert one or more data sets to tibbles

internal.create.cache.hash

Create a data.frame with the cache metadata

internal.rstudioprojectfile

Return an RStudio project file as character vector

internal.create.project

Create a project structure

internal.dir.empty

Check if a directory is empty

internal.evaluate.code

Run code and assign the results to variable

internal.get.template

Get the location of a template from its name

internal.has.project

Check if the project was loaded

internal.init.logger

Initialize the logger for the project

internal.is.cache.empty

Check whether the cache is empty

internal.is.cached

Check whether variables are cached

internal.is.dir

Check if path is an existing directory

internal.is.ProjectTemplate

Test whether a given path is a ProjectTemplate project

internal.stopifnotproject

Raise an error if given path is not a valid project

internal.stopifproject

Raise an error if given path is a valid project

internal.list.data

Build the list of data available for loading into memory

internal.list.files.and.dirs

List all files and directories, excluding .. and .

internal.load.data

Load the data from the cache and data directories

internal.load.helpers

Load the helper functions

internal.load.libraries

Load the libraries listed in the configuration into memory

internal.munge.data

Source all munge scripts

internal.package.version

Get the current ProjectTemplate version

internal.parse.extensions

Match readers to the extensions of the data files

internal.prepare.data.ignore.regex

Prepare a regular expression for matching files to be ignored

internal.provide.directory

Make sure a required directory exists before usage

internal.quietstop

Stop silently

list.data

Listing the data for the current project

load.project

Automatically load data and packages for a project.

loadproject_addin

Load Project

migrate.project

Migrates a project from a previous version of ProjectTemplate

migrate.template

Migrate a template to a new version of ProjectTemplate

preinstalled.readers

Automatically read data into memory

project.config

ProjectTemplate Configuration file

ProjectTemplate-package

ProjectTemplate: Automates the Creation of New Statistical Analysis Pr...

reload.project

Reload or reset a project

reloadproject_addin

Reload Project

require.package

Require a package for use in the project

run.project

Run all of the analyses in the src directory.

show.project

Show information about the current project.

stub.tests

Generate unit tests for your helper functions.

test.project

Run all unit tests for this project.

Provides functions to automatically build a directory structure for a new R project. Using this structure, 'ProjectTemplate' automates data loading, preprocessing, library importing and unit testing.

  • Maintainer: Kenton White
  • License: GPL-3 | file LICENSE
  • Last published: 2024-07-01