strip_comments: Strip comments from a character vector

Description Usage Arguments Value Examples

Description

Strip comments from a character vector

Usage

1
2
3
4
5
6
7
strip_comments(x, comment, keep_with = NULL)

## S3 method for class 'character'
strip_comments(x, comment = ";", keep_with = NULL)

## S3 method for class 'list'
strip_comments(x, comment = ";", keep_with = NULL)

Arguments

x

Character vector

Value

A character vector with comments removed

Examples

1
2
x <- c("; this is a comment in Gadget", "main\tmainfile")
strip_comments(x)

inspktrgadget/gadgetSim documentation built on May 10, 2019, 9:51 a.m.