Skip to content
Snippets Groups Projects
Commit 622d926e authored by Walmes Marques Zeviani's avatar Walmes Marques Zeviani
Browse files

Improves installation of R packages.

parent 410aef6a
No related branches found
No related tags found
No related merge requests found
...@@ -251,7 +251,9 @@ if [ $opcao -eq 1 ] ...@@ -251,7 +251,9 @@ if [ $opcao -eq 1 ]
then then
echo "Instalando os pacotes mais usados do CRAN." echo "Instalando os pacotes mais usados do CRAN."
espeak -v pt "Instalando os pacotes mais usados do CRAN." espeak -v pt "Instalando os pacotes mais usados do CRAN."
Rscript -e \ mkdir -p /home/walmes/R/x86_64-pc-linux-gnu-library/4.0
ls /home/walmes/R/x86_64-pc-linux-gnu-library/4.0
sudo Rscript -e \
'pkg <- c("agricolae", "AlgDesign", "alr4", "animation", "asbio", 'pkg <- c("agricolae", "AlgDesign", "alr4", "animation", "asbio",
"bbmle", "bookdown", "cairoDevice", "car", "contrast", "bbmle", "bookdown", "cairoDevice", "car", "contrast",
"corrplot", "curl", "data.table", "debug", "devtools", "corrplot", "curl", "data.table", "debug", "devtools",
...@@ -276,9 +278,10 @@ then ...@@ -276,9 +278,10 @@ then
"tikzDevice", "tm", "topicmodels", "tuber", "tweedie", "tikzDevice", "tm", "topicmodels", "tuber", "tweedie",
"waffle", "wordcloud", "XML", "xml2", "xtable"); "waffle", "wordcloud", "XML", "xml2", "xtable");
# lib <- "/usr/lib/R/site-library"; # lib <- "/usr/lib/R/site-library";
# repos <- "http://cran-r.c3sl.ufpr.br/"; lib <- "/home/walmes/R/x86_64-pc-linux-gnu-library/4.0";
# install.packages(pkg, dep = TRUE, lib = lib, repos = repos); repos <- "http://cran-r.c3sl.ufpr.br/";
install.packages(pkg, dep = TRUE); install.packages(pkg, dep = TRUE, lib = lib, repos = repos);
# install.packages(pkg, dep = TRUE);
cat("\n\n\nInstalações concluídas!\n")' cat("\n\n\nInstalações concluídas!\n")'
echo "Pacotes do R foram instalados do CRAN." echo "Pacotes do R foram instalados do CRAN."
espeak -v pt "Pacotes do R foram instalados do CRAN." espeak -v pt "Pacotes do R foram instalados do CRAN."
...@@ -295,7 +298,9 @@ then ...@@ -295,7 +298,9 @@ then
espeak -v pt "Instalando os pacotes mais usados do GitHub." espeak -v pt "Instalando os pacotes mais usados do GitHub."
sudo apt-get install libavfilter-dev -y sudo apt-get install libavfilter-dev -y
Rscript -e \ Rscript -e \
'devtools::install_github("rstudio/xaringan"); 'lib <- "/home/walmes/R/x86_64-pc-linux-gnu-library/4.0";
.libPaths(new = lib);
install.packages("xaringan");
devtools::install_github("gadenbuie/xaringanExtra"); devtools::install_github("gadenbuie/xaringanExtra");
devtools::install_github("jhelvy/xaringanBuilder"); devtools::install_github("jhelvy/xaringanBuilder");
devtools::install_github("rstudio/chromote"); devtools::install_github("rstudio/chromote");
......
...@@ -27,17 +27,9 @@ sudo rm -i /etc/apt/sources.list.d/SOME-NAME.list ...@@ -27,17 +27,9 @@ sudo rm -i /etc/apt/sources.list.d/SOME-NAME.list
# sudo apt-get install emacs emacs-goodies-el -y # sudo apt-get install emacs emacs-goodies-el -y
sudo apt-get install build-essential -y sudo apt-get install build-essential -y
sudo add-apt-repository ppa:kelleyk/emacs sudo add-apt-repository ppa:kelleyk/emacs -y
sudo apt-get update sudo apt-get update
# sudo apt-get install emacs26 -y
sudo apt-get install emacs -y sudo apt-get install emacs -y
# ATTENTION: do NOT install `emacs-goodies-el` anymore. It brings only
# `bm` package. The others are not used in my `init.el`.
# `emacs` installls the following components:
# emacs25 emacs25-bin-common emacs25-common emacs25-el
emacs --version # = 26.3 emacs --version # = 26.3
#----------------------------------------------------------------------- #-----------------------------------------------------------------------
...@@ -161,7 +153,6 @@ sudo add-apt-repository ppa:linuxuprising/shutter- y ...@@ -161,7 +153,6 @@ sudo add-apt-repository ppa:linuxuprising/shutter- y
# sudo add-apt-repository --remove ppa:linuxuprising/shutter # sudo add-apt-repository --remove ppa:linuxuprising/shutter
sudo apt-get update && sudo apt-get install shutter -y sudo apt-get update && sudo apt-get install shutter -y
#----------------------------------------------------------------------- #-----------------------------------------------------------------------
# GitKraken. # GitKraken.
...@@ -243,7 +234,7 @@ texdoc probsoln tikz pgfplots abntex2 abntex2cite-alf abntex2cite ...@@ -243,7 +234,7 @@ texdoc probsoln tikz pgfplots abntex2 abntex2cite-alf abntex2cite
# Google Chrome. # Google Chrome.
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P ~/Downloads/ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P ~/Downloads/
sudo apt install ~/Downloads/google-chrome-stable_current_amd64.deb sudo apt install ~/Downloads/google-chrome-stable_current_amd64.deb -y
# Solves: Google Chrome Asks Password to Unlock Login Keyring # Solves: Google Chrome Asks Password to Unlock Login Keyring
# https://tipsonubuntu.com/2017/12/20/google-chrome-asks-password-unlock-login-keyring/ # https://tipsonubuntu.com/2017/12/20/google-chrome-asks-password-unlock-login-keyring/
...@@ -439,10 +430,10 @@ sudo snap install scrcpy ...@@ -439,10 +430,10 @@ sudo snap install scrcpy
#----------------------------------------------------------------------- #-----------------------------------------------------------------------
# OBS-Studio, Kdenlive and Audacity. # OBS-Studio, Kdenlive and Audacity.
sudo add-apt-repository ppa:obsproject/obs-studio -y sudo add-apt-repository ppa:obsproject/obs-studio -y && \
sudo add-apt-repository ppa:kdenlive/kdenlive-stable -y sudo add-apt-repository ppa:kdenlive/kdenlive-stable -y && \
sudo add-apt-repository ppa:ubuntuhandbook1/audacity -y sudo add-apt-repository ppa:ubuntuhandbook1/audacity -y && \
sudo apt update sudo apt update && \
sudo apt install obs-studio kdenlive kde-style-breeze audacity -y sudo apt install obs-studio kdenlive kde-style-breeze audacity -y
#----------------------------------------------------------------------- #-----------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment