Toot

Written by Heather Turner :rstats: on 2024-08-23 at 17:24

@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

Mentions

=> View michaelchirico@fosstodon.org profile

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113012499026360657
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
237.291604 milliseconds
Gemini-to-HTML Time
0.361748 milliseconds

This content has been proxied by September (3851b).