@michaelchirico Interesting this came up recently - it does seem like there should be a neater way to do this. But Duncan Murdoch has a point about Windows-style newlines and I think it matters here, e.g.
x <- parse(text = paste("browser()", "{", "x <- 1:3\ny <- rnorm(x)", "}", sep = "\n"))
works, but
x <- parse(text = paste("browser()", "{", "x <- 1:3\r\ny <- rnorm(x)", "}", sep = "\n"))
throws an error.
=> More informations about this toot | View the thread | More toots from HeathrTurnr@fosstodon.org
=> View michaelchirico@fosstodon.org profile
text/gemini
This content has been proxied by September (3851b).