Job script:
#!/bin/bash
#SBATCH --job-name=rfee
#SBATCH --workdir=/home/user.name/rfee/
#SBATCH --output=r_foreach_example_console_output.txt
#SBATCH --mem-per-cpu=100 # specify RAM per CPU here in Mb
#SBATCH --time=0:02:00
| # ---------- Status Cats Error Pages!!! via: https://http.cat/ --------- | |
| # | |
| # requires that a dns resolver be set for nginx as in: resolver 127.0.0.1; | |
| # typically uses dnsmasq for 127.0.0.1 resolver | |
| # | |
| # Usage: | |
| # place this file somewhere accessible to nginx. /etc/nginx/snippets is a decent choice. | |
| # then inside the server block(s) you want cat themed error status responses do: | |
| # include snippets/http-cat-error-pages.conf | |
| # |
Job script:
#!/bin/bash
#SBATCH --job-name=rfee
#SBATCH --workdir=/home/user.name/rfee/
#SBATCH --output=r_foreach_example_console_output.txt
#SBATCH --mem-per-cpu=100 # specify RAM per CPU here in Mb
#SBATCH --time=0:02:00
This procedure was tested on Ubuntu 23.04 but should be very similar or identical on other verions.
Note that this will likely not install the latest version of R but the one that is included in the Ubuntu package repository. Installing a newer version can be tricky since the R project doesn't always support all recent releases of major Linux distributions. For most use cases, especially for education, the slightly older version of R will be prefectly fine though.
All commands in this guide need to be run as user root or with sudo.
| # ============================================================================ | |
| # R Package Installation Guide | |
| # Data Visualization and Genomics Course | |
| # ============================================================================ | |
| # | |
| # This script will help you install all required R packages for the course. | |
| # | |
| # Prerequisites: | |
| # - R version: 4.3.0 or higher (recommended: 4.4.0+) | |
| # - RStudio: Latest version recommended |