-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.r
More file actions
25 lines (20 loc) · 764 Bytes
/
install.r
File metadata and controls
25 lines (20 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Set CRAN repository to Posit Package Manager with pre-built binaries from a specific date
options(repos = c(CRAN = sprintf("https://packagemanager.posit.co/cran/2025-12-07/bin/linux/noble-%s/%s", R.version["arch"], substr(getRversion(), 1, 3))))
# Install required packages from CRAN to user directory
install.packages(c(
"remotes",
"data.table",
"R.utils",
"ggplot2",
"ggrepel",
"readxl",
"here",
"rmarkdown",
"IRkernel"
))
# Install specific version of meffonym package from GitHub
remotes::install_github("perishky/meffonym@9faface")
# Register R kernel with Jupyter
IRkernel::installspec(name = "rhds_r", displayname = "R (rhds)")
# Install our R package
remotes::install_github("Victoria-GS/rhds.rpackage@v0.1.0")