Skip to content

Comments

Fix for paths starting with '/'#51

Open
pandabadger wants to merge 1 commit intorasmusab:mainfrom
pandabadger:main
Open

Fix for paths starting with '/'#51
pandabadger wants to merge 1 commit intorasmusab:mainfrom
pandabadger:main

Conversation

@pandabadger
Copy link

beep() fails when passing an absolute file path (e.g., /home/user/sound.wav), while relative paths work correctly.
Since / comes before 0 in ASCII, any path starting with / returns invisible().

Adds is.numeric() check to fix.

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.

1 participant