-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "move everyhting one up (#2)""
This reverts commit e33f4ac.
- Loading branch information
Lars Kotthoff
committed
Jul 3, 2015
1 parent
31bc172
commit 815e7ca
Showing
150 changed files
with
55 additions
and
60 deletions.
There are no files selected for viewing
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../images/mlrLogo_white_88x40.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../images/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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.