tests/testthat/testing_lib_dir/rstudioapi-0.7/rstudioapi/doc/r-session.R

## ----setup, include=FALSE------------------------------------------------
knitr::opts_chunk$set(eval = FALSE)

## ------------------------------------------------------------------------
#  # restart R, then run some code after
#  rstudioapi::restartSession(command = "print('Welcome back!')")
#  
#  # send some code to the console and execute it immediately
#  rstudioapi::sendToConsole("1 + 1", execute = TRUE)
hughjonesd/apicheck documentation built on Sept. 9, 2019, 12:55 p.m.