Skip to content

Instantly share code, notes, and snippets.

@audy
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save audy/b569f21352d42f65f467 to your computer and use it in GitHub Desktop.

Select an option

Save audy/b569f21352d42f65f467 to your computer and use it in GitHub Desktop.
R vs. Python

R vs Python

I'm ending the debate right now.

> ./example.py
Traceback (most recent call last):
  File "./example.py", line 3, in <module>
    foo
NameError: name 'foo' is not defined

> ./example.R

Error: object 'foo' not found
Execution halted

See the difference?

#!/usr/bin/env python
foo
#!/usr/bin/env Rscript
foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment