tc_as_comment: Write a string to the clipboard formatted as an 80-wide R...

View source: R/tc_as_comment.R

tc_as_commentR Documentation

Write a string to the clipboard formatted as an 80-wide R comment

Description

Wraps x to maximum line width of 80 and adds # symbol at beginning of each line. Useful for long documentation.

Usage

tc_as_comment(x)

Arguments

x

string to be formatted into an R comment

Examples

tc_as_comment("Call me Ishmael. Some years ago - never mind how long precisely -
having little or no money in my purse, and nothing particular to interest me on shore,
I thought I would sail about a little and see the watery part of the world. It
is a way I have of driving off the spleen, and regulating circulation.")

wepelham3/sack2 documentation built on Aug. 5, 2023, 5:53 a.m.