From 0b853b4bb86eb01c56ff004a84af338729c024cd Mon Sep 17 00:00:00 2001 From: Bruno Rodrigues Date: Thu, 11 Jul 2024 10:34:14 +0200 Subject: [PATCH] removed unnecessary vignette --- .github/workflows/make_inst_default.yaml | 3 - ...-generate-an-environment-with-rix-only.Rmd | 56 ------------------- 2 files changed, 59 deletions(-) delete mode 100644 vignettes/z-developers-vignette-generate-an-environment-with-rix-only.Rmd diff --git a/.github/workflows/make_inst_default.yaml b/.github/workflows/make_inst_default.yaml index 0927e5c7..b37386d7 100644 --- a/.github/workflows/make_inst_default.yaml +++ b/.github/workflows/make_inst_default.yaml @@ -23,9 +23,6 @@ jobs: - name: Nix cache uses: DeterminateSystems/magic-nix-cache-action@main - - name: Install Git - run: sudo apt-get install git - - name: Get latest commit hash id: get_latest_commit run: echo "LATEST_COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV diff --git a/vignettes/z-developers-vignette-generate-an-environment-with-rix-only.Rmd b/vignettes/z-developers-vignette-generate-an-environment-with-rix-only.Rmd deleted file mode 100644 index 809dd5fd..00000000 --- a/vignettes/z-developers-vignette-generate-an-environment-with-rix-only.Rmd +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: "z - Developers Vignette: Generate an environment with rix only" -output: rmarkdown::html_vignette -vignette: > - %\VignetteIndexEntry{z-developers-vignette-generate-an-environment-with-rix-only} - %\VignetteEngine{knitr::rmarkdown} - %\VignetteEncoding{UTF-8} ---- - -```{r, include = FALSE} -knitr::opts_chunk$set( - collapse = TRUE, - comment = "#>" -) -``` - -```{r setup} -library(rix) -``` - -The code below generates the `default.nix` file included in the package -at `inst/extdata`. You can use the call below in case you want to generate -an environment with `{rix}` only. - -The latest commit gets used automatically: - - -```{r parsermd-chunk-1, eval = T} -library(rix) - -latest_commit <- tryCatch( - expr = { - sys::as_text( - sys::exec_internal("git", c("rev-parse", "master"))$stdout - ) - }, - # if it fails, use this commit instead - error = function(e) "4d96207e7f69cbadca5349e9caa5bcc4059c1dc3" -) - -rix(r_ver = "latest", - r_pkgs = NULL, - system_pkgs = NULL, - git_pkgs = list( - package_name = "rix", - repo_url = "https://github.com/b-rodrigues/rix/", - branch_name = "master", - commit = latest_commit - ), - ide = "other", - # path is "./vignettes/" so need to go one up - project_path = "../inst/extdata", - overwrite = TRUE, - shell_hook = NULL) -``` -