open_exercise: Open an exercise

Description Usage Arguments

View source: R/exercise.R

Description

Open an exercise file. A new file is created in your working directory unless you specify the dir argument.

Usage

1
open_exercise(number, overwrite = FALSE, suffix = NULL, dir = getwd())

Arguments

number

A number specifying which exercise to open.

overwrite

If you want to overwrite the exercise file you already opened use overwrite = TRUE, default to FALSE.

suffix

If you do not want to overwrite your previous exercise file but want to open another version you can specify text that will get appended to the filename.

For example, if suffix is "attempt-2" and exercise is 0 the new file would be exercise-0-attempt-2.R.

dir

A character string specifying the directory where the exercise file will be created, defaults to getwd(), the current working directory.


zevross-spatial/rstudio-conf2020-spatial-ex documentation built on Jan. 29, 2020, 9:57 a.m.