Skip to content

Conversation

@arni-magnusson
Copy link
Member

Hi Ben,

The only thing more fun than drawing ASCII art is drawing UTF-8 art :)

Today, I wanted to ASCIIfy the └ character and was surprised that the ASCIIfy() function was choking on it. After a quick Heimlich maneuver, I modified a line in the code that allows it to convert a wider range of Unicode characters, including the highly useful └ character.

Reproducible example:

# Current gtools
source("https://raw.githubusercontent.com/r-gregmisc/gtools/bc5d659/R/ASCIIfy.R")
ASCIIfy("└")

# This pull request
source("https://raw.githubusercontent.com/arni-magnusson/gtools/refs/heads/master/R/ASCIIfy.R")
ASCIIfy("└")

@bbolker bbolker merged commit 6888065 into r-gregmisc:master Apr 17, 2025
0 of 6 checks passed
@bbolker
Copy link
Contributor

bbolker commented Apr 17, 2025

Merged, thanks. How would you write a test/example for this? I'm worried about including the└ character in example/test files because of potential encoding issues ... ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants