Set the options for rsTeachMode

set_teach_mode_settings(
  current_mode = "user",
  user_theme_name = get_current_editor_theme(),
  user_font_size = get_current_font_size(),
  teach_theme_name = "Chrome",
  teach_font_size = 24,
  quiet = TRUE
)

Arguments

current_mode

Either "user" or "teach".

user_theme_name

Name of the theme to be used in "user" mode.

user_font_size

Font size to be used in "user" mode.

teach_theme_name

Name of the theme to be used in "teach" mode.

teach_font_size

Font size to be used in "teach" mode.

quiet

When FALSE prints the code to be added to your Rprofile to make settings persist between sessions.

Value

List object of the rsTeachMode options

Examples

if (FALSE) { # Use current settings as the "user" mode and use the defaults for "teach" mode. set_teach_mode_settings() }