Skip to content

Commit

Permalink
add conda instructions
Browse files Browse the repository at this point in the history
This will fix #50
  • Loading branch information
zkamvar committed Sep 20, 2023
1 parent 8c808d4 commit d08d5a3
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions index.qmd
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
---
title: The Carpentries Workbench
subtitle: An accessible lesson infrastructure built in R
subtitle: An accessible lesson infrastructure
---

::::::: {.callout-note}

## Workbench Transition Phase

We are in the process of transitioning our official lessons to use The
Carpentries Workbench. Find out more in our [Transition
Schedule](transition-schedule.html)

::::::::::::::::::::


The Workbench is a complete redesign of The Carpentries lesson websites, with
new features prioritising accessibility and navigation. **All Carpentries lessons
will begin using The Carpentries Workbench in May 2023.**
Expand All @@ -34,7 +23,6 @@ will begin using The Carpentries Workbench in May 2023.**

### Usage


::: {.panel-tabset}

#### Within R
Expand Down Expand Up @@ -72,14 +60,34 @@ To install the workbench, make sure you have a working version of R and
pandoc/RStudio installed (see [the workbench setup instructions for
details](https://carpentries.github.io/sandpaper-docs/)).

::: {.callout-tip collapse='true'}

#### Setup with Anaconda

Thanks to Travis Wrightsman for [providing the instructions to setup for
anaconda](https://github.com/carpentries/workbench/issues/50). These lines
will set up an anaconda environment that includes all the dependencies you need
to use The Workbench.

```sh
conda create -n workbench 'git>=2.28' 'r-base>=3.6' 'pandoc>=2.11' pkg-config libxslt
conda activate workbench
R -e 'install.packages(c("sandpaper", "varnish", "pegboard", "tinkr"), \
repos = list(carpentries="https://carpentries.r-universe.dev/", CRAN="https://cloud.r-project.org"))'
```

:::

From there, you can install the workbench packages and their dependencies from
our [Carpentries R Universe](https://carpentries.r-universe.dev):
our [Carpentries R Universe](https://carpentries.r-universe.dev) inside of R:

```r
install.packages(c("sandpaper", "varnish", "pegboard", "tinkr"),
repos = c("https://carpentries.r-universe.dev/", getOption("repos")))
```



### Updating

To update workbench packages, you can use the same command as you did to install
Expand Down

0 comments on commit d08d5a3

Please sign in to comment.