find_notes: Locate files at given path

View source: R/open-notes-files.R

find_notesR Documentation

Locate files at given path

Description

Determines all notes files (html, Rmd) or data (csv) files at the given location.

Usage

find_notes(
  week,
  day,
  file_types = c("notes", "data", "rmd"),
  path,
  drop_dups = TRUE
)

Arguments

week

Integer

day

Integer

file_types

Character; Any or all of 'notes', 'rmd', or 'data'

path

Character; Location of course repo

drop_dups

Logical; Remove duplicated dataset names

Details

If file_types is 'notes', html note files are opened. If file_types is 'rmd' Rmarkdown notebooks are opened. If file_types is 'data' csv files are read and placed in the global environment. Data files are named according to their basename

Value

List of character vector filepaths named 'notes', 'rmd' and 'data'


jmcvw/ccmisc documentation built on July 27, 2022, 1:48 a.m.