conda env update -n name-of-your-env -f environment.yml
conda activate name-of-your-env
gem install bundler
bundle install
conda activate name-of-your-env
make site
conda activate name-of-your-env
# Rscript -e "source('bin/generate_md_episodes.R')" _episodes_rmd/{lesson}.Rmd _episodes/{lesson}.md
Rscript -e "source('bin/generate_md_episodes.R')" _episodes_rmd/01-introduction.Rmd _episodes/01-introduction.md
rmd_files <- Sys.glob(file.path(getwd(), '_episodes_rmd', '*.Rmd'))
for (rmd_file_path in rmd_files){
rmd_file_name <- basename(rmd_file_path)
episode_name <- substr(rmd_file_name,1,nchar(rmd_file_name)-nchar(".Rmd"))
md_file_name <- paste(episode_name, '.md', sep="")
md_file_path <- file.path(getwd(),'_episodes',md_file_name)
system(
paste(
"Rscript -e \"source('bin/generate_md_episodes.R')\" \"",
rmd_file_path,
"\" \"",
md_file_path,
"\"",
sep=""
)
)
}
ls _episodes_rmd/*.Rmd | sed 'p;s/_rmd\(..*\).Rmd/\1.md/' | xargs -n2 Rscript -e "source('bin/generate_md_episodes.R')"
$ conda activate name-of-your-env
$ bundle exec jekyll serve
This repository generates the corresponding lesson website from The Carpentries repertoire of lessons.
We welcome all contributions to improve the lesson! Maintainers will do their best to help you if you have any questions, concerns, or experience any difficulties along the way.
We'd like to ask you to familiarize yourself with our Contribution Guide and have a look at the more detailed guidelines on proper formatting, ways to render the lesson locally, and even how to write new episodes.
Please see the current list of [issues][FIXME] for ideas for contributing to this repository. For making your contribution, we use the GitHub flow, which is nicely explained in the chapter Contributing to a Project in Pro Git by Scott Chacon. Look for the tag . This indicates that the maintainers will welcome a pull request fixing this issue.
Current maintainers of this lesson are
- FIXME
- FIXME
- FIXME
A list of contributors to the lesson can be found in AUTHORS
To cite this lesson, please consult with CITATION