readSlide: Get the path to a specific chapter

Description Usage Arguments Value Examples

Description

The function readSlide gives the path of a specific chapter file. This avoids long paths for the child parameter at the Rmd files.

Usage

1
readSlide(slide.name, path = getwd(), file = TRUE)

Arguments

slide.name

(character(1))
The name of a specific file. To see which files are existing use getStructure.

path

(character(1))
The working directory of the rcourses repo. Please notice, that every path containing /rcourses will work.

file

(logical(1))
Specify if the returned path should contain the file or just the directory which contains the file.

Value

(character(1))
readSlide returns a string containing the path of the file.

Examples

1
2
3
4
5
## Not run: 
  (test = readSlide("about_r"))
  file.exists(test)
  
## End(Not run)

compstat-lmu/rcoursesFunctions documentation built on May 8, 2019, 2:43 p.m.