wd_check: File-in-Working Directory checker

Description Usage Arguments Value Examples

Description

Function to determine if a file lies in a working directory.

Usage

1
wd_check(filelocation)

Arguments

filelocation

A character string specifying a file location.

Value

A file location. Gives the file location without the working directory if the file is in it (also can be a subfolder), but returns the full path if not.

Examples

1
2
filepath_test <- file.path(getwd(), "data", "testfile.csv")
wd_check(filepath_test)

Stan125/GREA documentation built on May 9, 2019, 1:55 p.m.