Skip to content

Instantly share code, notes, and snippets.

@amoeba
Last active November 24, 2015 22:12
Show Gist options
  • Select an option

  • Save amoeba/c6dd2abd4237538ea519 to your computer and use it in GitHub Desktop.

Select an option

Save amoeba/c6dd2abd4237538ea519 to your computer and use it in GitHub Desktop.

1. The string '2+2' in PowerPoint, which was running in Parallels

$ pbpaste | hexdump
0000000 32 2b 32 0d

When run in R:

"rror: unexpected input in "2+2

2. The string '2+2' copied from the terminal

$ echo "2+2" | pbcopy
$ pbpaste | hexdump
0000000 32 2b 32 0a
0000004

When run in R:

[1] 4

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