-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Not using ... ref #110 * Update doc * Correct docs * Change the default CRAN_mirror * Revert "Change the default CRAN_mirror" This reverts commit 98e03b0. * Apptainer * MF
- Loading branch information
1 parent
608ba52
commit 984583b
Showing
8 changed files
with
83 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## Autogenerated by rang, you might want to change the handle | ||
handle=yourproject | ||
.PHONY: update build apptainerlaunch apptainerbash apptainerdaemon apptainerstop export | ||
|
||
update: | ||
Rscript inst/rang/update.R | ||
build: container.def | ||
apptainer build "${handle}img.sif" container.def | ||
launch: | ||
apptainer run "${handle}img.sif" R | ||
bash: | ||
apptainer shell "${handle}img.sif" | ||
daemon: | ||
apptainer instance start "${handle}img.sif" "${handle}container" | ||
stop: | ||
apptainer instance stop "${handle}container" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
library(rang) | ||
library(here) | ||
|
||
cran_mirror <- "https://cloud.r-project.org/" | ||
|
||
## Please note that the project scanning result should be checked manually. | ||
## 1. Github packages must be added manually | ||
## as_pkgrefs(here::here()) | ||
## 2. You might also want to change the `snapshot_date` to a fix date, when | ||
## the project is finalized. | ||
|
||
rang <- resolve(here::here(), | ||
snapshot_date = NA, | ||
verbose = TRUE) | ||
|
||
## You might want to edit `post_installation_steps` or `cache` | ||
apptainerize(rang, output_dir = here::here(), verbose = TRUE, cache = TRUE, | ||
post_installation_steps = c(recipes[["make"]], recipes[["texlive"]], recipes[["clean"]]), | ||
insert_readme = FALSE, | ||
copy_all = TRUE, | ||
cran_mirror = cran_mirror) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters