write.code: write.code - Write code to disk. OUTPUT = Writes out code...

Description Usage Arguments Value Author(s) Examples

Description

This is a simple function for writing code to disk.

Usage

1

Arguments

x

Script object to write.

file

Path to where you want to write. Default writes to clipboard.

Value

The script is written to disk, line by line.

Author(s)

Matthew K. Lau

Examples

1
2
3
4
 data(prov_json)
 options(prov.json = prov_json)
 some.code <- c("x <- 1", "y <- x + 1")
 write.code(some.code) # copies to clipboard by default

Rclean documentation built on May 2, 2019, 9:18 a.m.