How To Make an Executable R Script on Mac!

Описание к видео How To Make an Executable R Script on Mac!

If you find yourself always having to manually clean your data and Excel Macros aren't cutting it, you can automate this process a bit more by creating an executable R script!

This video does not focus on how to clean data, unfortunately everyone has different purposes or needs :(

But please do not hesitate to ask any questions :)

00:00 Creating the R Script
06:09 Creating .command file
7:43 Allowing file permissions
9:16 Testing our executable file


Steps:
1. Paste " #!/usr/bin/env Rscript " on top of your R Script
2. Open TextEdit and paste in the file path to your R Script.
3. Save the file with the extension " .command "
4. Open the Terminal and type " chmod u+x .command file path "
5. Type " chmod 755 R Script file path "

Sample R Script:
https://drive.google.com/file/d/1fcwlNQJfL...

Sample Dataset:
https://drive.google.com/file/d/1yOykIX01G...

Комментарии

Информация по комментариям в разработке