carbonace: carbonace shinyapp

Description Usage Arguments Details Examples

View source: R/carbonace.R

Description

shinyapp to convert shinyAce to images for code sharing

Usage

1
2
3
4
5
carbonace(
  init = "x <- 1",
  viewer = shiny::paneViewer(),
  ace_opts = ace_settings()
)

Arguments

init

character, intial script to initialize shinyAce with.

viewer

which viewer to open the app in. Default: shiny::paneViewer()

ace_opts

user specific settings tp pass to the aceEditor. Default: ace_settings()

Details

Default options are:

Field Value
theme "ambience"
mode 'r'
fontSize 12
tabSize 4
value init
wordWrap TRUE
autoScrollEditorIntoView TRUE
maxLines Inf
placeholder "Show a placeholder when the editor is empty ..."

Examples

1
2
3
4
5
6
if(interactive()){
 carbonace:::carbonace()

 # Use ace_settings to change initial theme
 # carbonace:::carbonace(ace_opts = ace_settings(theme = 'chrome'))
 }

yonicd/carbonace documentation built on April 25, 2020, 12:56 a.m.