Skip to content

Commit

Permalink
Revert "Revert "move everyhting one up (#2)""
Browse files Browse the repository at this point in the history
This reverts commit e33f4ac.
  • Loading branch information
Lars Kotthoff committed Jul 3, 2015
1 parent 31bc172 commit 815e7ca
Show file tree
Hide file tree
Showing 150 changed files with 55 additions and 60 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
56 changes: 53 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,55 @@
# Tutorial
URL: http://mlr-org.github.io/mlr-tutorial/devel/html/
=======
# mlr-tutorial
The mlr package online tutorial

## First steps
Install dependencies:
* `pip install --user mkdocs` or `easy_install --user mkdocs`.
* Install the [math extension for Python-Markdown](https://github.com/mitya57/python-markdown-math):
After download `chmod a+x setup.py`, edit the first line in the file if you use `pyhton2`, type `python setup.py build` and `python setup.py install`.
* Install R dependencies as required.

## Howto

### Edit a tutorial section
* Only edit R markdown files in subfolder `src/`.
* Markdown basics:
* Basic Markdown: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
* RStudio Support: https://support.rstudio.com/hc/en-us/articles/200552086-Using-R-Markdown
* Knitr options: http://yihui.name/knitr/options
* Link to mlr manual: `[&function]` and `[name](&function)`.
* Link to other manuals: `[&pkg::function]` and `[name](&pkg::function)`.
* Links will only work properly if they point to the *base name* of the help file:
For example, in order to link to mlr function `foo` documented on help page `bar` write
`[foo](&bar)` instead of `[&foo]`.
* Link to packages: `[%pkg]` and `[name](%pkg)`.

### Add a new tutorial section
* Create a new R markdown file in subfolder `src/`.
* Add the new section to the pages configuration in `mkdocs.yml`.

### Include images
Assume you want to include an additional image in file `pic.png`:
* Put this file in subfolder `../images/`.
* Add a symlink in subfolder `custom_theme/img/`: `pic.png -> ../../../images/pic.png`.
* When including the image in the R markdown link to `img/pic.png`:
`![alt text](img/pic.png "Image Title")`

### Commit your changes
* Run `./build` to generate new static HTML.
* If everything works:
Commit and push your changes **except the HTML** to update the tutorial.
After your commit the HTML pages are automatically built and pushed by Travis.

## More
* "mkdocs serve" starts a http server listening on http://localhost:8000
and updates the docs on change.
* Sometimes function names collide. These packages must be loaded _first_
in `build`. That way mlr overwrites these functions again, e.g. `caret::train`.
* The build caches the output of running the R commands in the `cache/` directory.
If your R setup has changed (e.g. new version of mlr), you should delete
everything in the cache directory to make sure that the tutorial is
regenerated with the new code.

This particularily means: If you encounter an error in building the tutorial
due to your R setup (e.g. outdated/missing packages) you **have to** delete
the cache (after updating said packages) to get rid of the error.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions custom_theme/img/mlrLogo_white_88x40.png
1 change: 1 addition & 0 deletions custom_theme/img/resampling.png
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
55 changes: 0 additions & 55 deletions tutorial/README.md

This file was deleted.

1 change: 0 additions & 1 deletion tutorial/custom_theme/img/mlrLogo_white_88x40.png

This file was deleted.

1 change: 0 additions & 1 deletion tutorial/custom_theme/img/resampling.png

This file was deleted.

0 comments on commit 815e7ca

Please sign in to comment.