You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: presentation/linux_bash_metacentrum_course.tex
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4788,7 +4788,7 @@ \subsection{Tasks}
4788
4788
\item In the \texttt{metacentrum.sh} script load R, e.g. \texttt{module add r/4.1.3-gcc-10.2.1-6xt26dl} and start there R script as usually \texttt{R CMD BATCH script.r}
4789
4789
\end{itemize}
4790
4790
\begin{enumerate}
4791
-
\item Login to selected front node via SSH
4791
+
\item Login to selected front node via SSH and load R module
4792
4792
\item Create somewhere new directory for R packages \texttt{mkdir rpkgs} (or use default \texttt{$\sim$/R/})
4793
4793
\item Start R \texttt{R} and install \textbf{all} R packages needed for the task --- install them into the \texttt{rpkgs} directory \texttt{install.packages(pkgs=\ldots, lib="rpkgs")}
4794
4794
\item In the R script \texttt{*.r} load the packages from the \texttt{rpkgs} directory \texttt{library(package=\ldots, lib.loc="/storage/\ldots/rpkgs")}
@@ -5111,7 +5111,7 @@ \subsection{Git basics} % TODO Bit reorder commands so it is more fluent.
5111
5111
git log # Newest is on top, see also "git log --help"
5112
5112
git log --graph --oneline --decorate --all # Full long log
5113
5113
# Discard local changes for particular file
5114
-
git checkout --- <file>
5114
+
git restore <file>
5115
5115
# Discard all local changes
5116
5116
git fetch origin # Overwrite local changes
5117
5117
git reset --hard origin/master # If local repository is broken...
0 commit comments