NCEAS / arctic-data-training

Training activities for the Arctic Data Center
http://training.arcticdata.io
10 stars 12 forks source link

ADC Training Site

Practical open science approaches to Arctic research and data management

Acknowledgements

Work on this package was supported by:

Additional support was provided for working group collaboration by the National Center for Ecological Analysis and Synthesis, a Center funded by the University of California, Santa Barbara, and the State of California.

nceas_footer

About this repository

This repository is an integration of Blogdown and Bookdown. Some amount of wrangling was required to get all of this set up and not everything may be obvious to all viewers.

Helpful hints:

How this works

Not everything is integrated nicely together so there are some folder organization conventions that need to be maintained for things to work. Changes to these conventions will require updating multiple pieces and will be error-prone.

Adding a new Event

Add a new subfolder at ./content/events/{your-training-name}, replacing {your-training-name} with a short title for the training and write up an index.md in that folder with your content. I'd suggest just copying an existing event and modifying it for your needs.

Adding a new Book (Material)

Working on a Book (Material)

To work on a Book (e.g., edit a chapter), you will want to do a couple of things to get properly set up. Each Book is in its own sub-folder of ./materials. and should have its own .Rproj file inside its particular subdirectory.

If you haven't already cloned this repository, you'll want to do that:

git clone https://github.com/nceas/sasap-training

Once that's done, cd into the subfolder within ./materials for the Book you want to edit and open the .RProj file:

# Just an example:
cd sasap-training/materials/reproducible-analysis-in-r/
open reproduceible-analaysis-in-r.Rproj

If you system is set up like mine is, RStudio should open. While working on whatever chapter(s) you want to work on, you may want to preview them before committing your changes. You can use the Knit button in RStudio, but it's maybe even nice to use Bookdown's live-reloading functionality:

bookdown::serve_book(".")

As you edit and save your work, the Viewer Pane in RStudio should automatically update with your rendered changes.