From c1910aa850fc3ac5f185da17171694e60e236d0b Mon Sep 17 00:00:00 2001
From: Lulu Roth <ls80zyse@studserv.uni-leipzig.de>
Date: Sat, 24 Nov 2018 12:35:43 +0100
Subject: [PATCH] Add shebang to r scripts, create .gitignore

---
 .gitignore         | 2 ++
 r/ExtractFromXML.R | 2 ++
 r/PhysicistsList.R | 2 ++
 3 files changed, 6 insertions(+)
 create mode 100644 .gitignore
 mode change 100644 => 100755 r/ExtractFromXML.R

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..dfdd933
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.csv
+*.RDS
\ No newline at end of file
diff --git a/r/ExtractFromXML.R b/r/ExtractFromXML.R
old mode 100644
new mode 100755
index 2af3bc4..5bf23a5
--- a/r/ExtractFromXML.R
+++ b/r/ExtractFromXML.R
@@ -1,3 +1,5 @@
+#!/usr/bin/env Rscript
+
 library(xml2)
 
 data <- read_xml("../data/Wikipedia-20181120103842.xml")
diff --git a/r/PhysicistsList.R b/r/PhysicistsList.R
index 2998f9b..bd776bc 100644
--- a/r/PhysicistsList.R
+++ b/r/PhysicistsList.R
@@ -1,3 +1,5 @@
+#!/usr/bin/env Rscript
+
 ### Extract list of pyhsicists from wikipedia article
 
 library(rvest)
-- 
GitLab