Learn R Programming

raveio (version 0.9.0)

rave-snippet: 'RAVE' code snippets

Description

Run snippet code

Usage

update_local_snippet(force = TRUE)

load_snippet(topic, local = TRUE)

Value

`load_snippet` returns snippet as a function, others return nothing

Arguments

force

whether to force updating the snippets; default is true

topic

snippet topic

local

whether to use local snippets first before requesting online repository

Examples

Run this code

if(!is_on_cran()) {

  update_local_snippet()
  snippet <- load_snippet("dummy-snippet")

  # Read snippet documentation
  print(snippet)

  # Run snippet as a function
  snippet("this is an input")
}

Run the code above in your browser using DataLab