Last updated: 2021-04-22
Checks: 7 0
Knit directory: BreedingSchemeOptGroup/
This reproducible R Markdown analysis was created with workflowr (version 1.6.2). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.
Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.
Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.
The command set.seed(20210422)
was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.
Great job! Recording the operating system, R version, and package versions is critical for reproducibility.
Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.
Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
The results in this page were generated with repository version bf9f68c. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.
Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish
or wflow_git_commit
). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:
Ignored files:
Ignored: .DS_Store
Ignored: .Rproj.user/
Ignored: data/.DS_Store
Ignored: data/images/
Untracked files:
Untracked: analysis/images/
Untracked: data/BaselineControlFile.txt
Untracked: data/BaselinePopulationFile.txt
Untracked: data/inst/
Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.
These are the previous versions of the repository in which changes were made to the R Markdown (analysis/workflowr_workflow.Rmd
) and HTML (docs/workflowr_workflow.html
) files. If you’ve configured a remote Git repository (see ?wflow_git_remote
), click on the hyperlinks in the table below to view the files as they were in that past version.
File | Version | Author | Date | Message |
---|---|---|---|---|
Rmd | bf9f68c | wolfemd | 2021-04-22 | Publish the workflowr workflow itself. |
Below, I document the process of creating and publishing a workflowr
documentation for the Breeding Scheme Opt. Group.
To implement yourself, also recommend you check out the getting started page for workflowr
.
I work in Rstudio. I use the Rstudio GUI to create the project and do a few other tasks that don’t need automation.
File > New Project > New Directory > Create workflowr project
Enter your Git / GitHub user name and email address to facilitate version control set-up.
The project get’s set up automatically.
Get presented with initial files and file structure.
File in a super brief description or other relevant information in the README.md
; this will appear on the main GitHub repository for the project.
Next index.Rmd
. This is the home / landing page for the project. Combined with the top navigation bar (which is edited in the _site.yml
).
Change the theme and syntax highlighting in _site.yml
to yeti and breezedark because I like them.
From here, content creation begins.
I add new Rmd’s in the analysis/
directory as I go. I also subsequently link new documents in the index.Rmd
main page and on the navbar (_site.yml
) as desired.
Once the structure is in place, it’s pretty straightforward to build on.
You can add and automatically open a new Rmd using
::wflow_open("analysis/AlphaSimHlpR_firstSteps.Rmd") workflowr
Automatically adds a bit of yaml
at the top to connect it to the rest of the project. Customize the title, author name, etc as desired.
---
title: "First steps - Install and Run AlphaSimHlpR tutorial"
author: "Marnin Wolfe"
date: "2021-04-22"
output: workflowr::wflow_html
editor_options:
chunk_output_type: console
---
Now I’m ready to do an initial “publish” of the project, which means the *.Rmd
files will be compiled into *.html
in the docs/
directory. Also a Git commit will occur.
I like to manually record each Rmd I publish for precision, but you can compile everything if you want.
::wflow_publish(c("analysis/AlphaSimHlpR_firstSteps.Rmd",
workflowr"analysis/example-simulation-reducing-error-with-new-tools.Rmd",
"analysis/index.Rmd",
"analysis/about.Rmd",
"analysis/license.Rmd",
"analysis/_site.yml"),
"Publish the initial files for the Breeding Scheme Optimization Group project")
::wflow_use_github(username="wolfemd", create_on_github = T)
workflowr::wflow_git_push(usename="wolfemd") workflowr
Now the repository is uploaded to GitHub.
Last step to make it live on GitHub Pages
In GitHub repository –> “Settings” (approx top right")
Choose Pages (left side bar) –> Choose Source branch “master” and directory /docs
Site is now published to: https://wolfemd.github.io/BreedingSchemeOptGroup/
Might take a few moments to be live.
Last step, add this page to the workflowR project.
::wflow_open("analysis/workflowr_workflow.Rmd") workflowr
::wflow_publish(c("analysis/index.Rmd",
workflowr"analysis/_site.yml",
"analysis/workflowr_workflow.Rmd"),
republish = T, # republish=T since we updated _site.yml
message = "Publish the workflowr workflow itself.")
sessionInfo()