-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequirements.sh
executable file
·59 lines (59 loc) · 1.8 KB
/
requirements.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
sudo apt-get update
echo -n "Do you want to install R (y/n)? "
read answer
if [ "$answer" != "${answer#[Yy]}" ] ;then
sudo apt -y install r-base
else
echo OK.
fi
echo -n "Do you want to install Package stringi (y/n)? "
read answer
if [ "$answer" != "${answer#[Yy]}" ] ;then
sudo su - -c "R -e \"install.packages('stringi', repos='http://cran.rstudio.com/')\""
else
echo OK.
fi
echo -n "Do you want to install Package data.table (y/n)? "
read answer
if [ "$answer" != "${answer#[Yy]}" ] ;then
sudo su - -c "R -e \"install.packages('data.table', repos='http://cran.rstudio.com/')\""
else
echo OK.
fi
echo -n "Do you want to install Package XML (y/n)? "
read answer
if [ "$answer" != "${answer#[Yy]}" ] ;then
sudo su - -c "R -e \"install.packages('XML', repos='http://cran.rstudio.com/')\""
else
echo OK.
fi
echo -n "Do you want to download stackexchange data about beer (y/n)? "
read answer
if [ "$answer" != "${answer#[Yy]}" ] ;then
sudo wget "https://archive.org/download/stackexchange/beer.stackexchange.com.7z"
else
echo OK.
fi
echo -n "Do you want to download stackexchange data about gaming (y/n)? "
read answer
if [ "$answer" != "${answer#[Yy]}" ] ;then
sudo wget "https://archive.org/download/stackexchange/gaming.stackexchange.com.7z"
else
echo OK.
fi
echo -n "Do you want to download stackexchange data about health (y/n)? "
read answer
if [ "$answer" != "${answer#[Yy]}" ] ;then
sudo wget "https://archive.org/download/stackexchange/health.stackexchange.com.7z"
else
echo OK.
fi
echo -n "Do you want to install RStudio (y/n)? "
read answer
if [ "$answer" != "${answer#[Yy]}" ] ;then
sudo apt-get install gdebi-core
wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.4.1717-amd64.deb
sudo gdebi rstudio-server-1.4.1717-amd64.deb
else
echo OK.
fi