Skip to content

Commit

Permalink
Add data download step
Browse files Browse the repository at this point in the history
  • Loading branch information
arcadio committed Jun 28, 2024
1 parent 214063a commit 23c48d3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
6 changes: 5 additions & 1 deletion make.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Create tmp directory for storing results and run all models.
# Download data, create tmp directory for storing results and run all
# statistical inference models.

SRC='https://github.com/arcadio/nk-models/releases/latest/download/dat.tar.gz'

curl -L $SRC | tar -xzf -
mkdir -p tmp

Rscript hypothesis.r
Expand Down
13 changes: 7 additions & 6 deletions readme.org
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ Alternatively, R and R packages listed in [[file:flake.nix][flake.nix]].

* Usage

Clone this repository and visit the resulting directory. Download and
decompress pre-processed data inside the repository, creating a ~dat/~
subdirectory. Fetch compressed data from the [[https://github.com/arcadio/nk-models/releases/latest/download/dat.tar.gz][latest release]].
1. Run ~nix develop~. This instantiates an ephemeral environment that
contains R and all required R packages.

Start a Nix shell with ~nix develop~. This instantiates an ephemeral
shell with R and all required R packages. Run ~bash make.sh~. Figures
created in ~tmp/~ should match those in the article.
2. Run ~bash make.sh~. This downloads processed data and performs
statistical inference.

After execution, figures created inside the ~tmp~ subdirectory should
reproduce those in the article.

* License

Expand Down

0 comments on commit 23c48d3

Please sign in to comment.