open_solution: Open the solution to an exercise

Description Usage Arguments

View source: R/solution.R

Description

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

Usage

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

Arguments

number

A number specifying which solution to open.

overwrite

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

suffix

If you do not want to overwrite your previous solution 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 solution is 0 the new file would be solution-0-attempt-2.R.

dir

A character string specifying the directory where the solution 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.