Free
Never get obsolete
We want to identify the meaning, not the shapes
This is called “Separation of content and presentation”
Once you have identified the structure of the document, you have to describe them to the computer
You can also do it in Word, using the mouse
(but the keyboard is faster)
Text files can be read with any computer,
and will be accessible for ever.
We want to use text files
We need a way to markup style into plain files
The easiest way to handle text files is to use a text editor
These are programs to view and edit text files
They use a font like Courier
Each letter has the same size
Since each letter has the same size, text editor use color
The color depends on the role of each text
For example, headings can be in red color
The color is not in the file. The editor puts colors
I will show you my screen
Text files with a few rules to mark element’s roles
The Structured Text format most often used is Markdown
Here we show some of the rules
The basic idea is to use some symbols as special
Moreover, they are special only in some context
Markdown files are not plain
Markdown files are text files with structure
The first paragraph.
Another paragraph
The first paragraph.
Another paragraph
First level header
==================
Second level header
-------------------
Normal text
First level headerSecond level headerNormal text
# Header 1
## Header 2
### Header 3
#### Header 4
Header 1Header 2Header 3Header 4
These work with Markdown and other formats
code.visualstudio.com
atom.io
rstudio.com/products/rstudio/download/
All are good. We use RStudio
typora.io
markdownpad.com
markdownmonster.west-wind.com
stackedit.io
dillinger.io
draftin.com
jbt.github.io/markdown-editor/
Today we will use the last one
+ Item 1
+ Item 2
+ Item 2a
+ Item 2b
- Item 1
- Item 2
- Item 2a
- Item 2b
Sub-lists are indented by 4 spaces
1. Item 1
1. Item 2
1. Item 3
1. Item 3a
1. Item 3b
- Item 1
- Item 2
- Item 3
- Item 3a
- Item 3b
To show something remarkable, for example when someone important said something interesting.
> "The limits of my language mean
> the limits of my world"
>
> *Ludwig Wittgenstein*
“The limits of my language mean the limits of my world”
Ludwig Wittgenstein
You have to indicate the web address of the image
![optional text](http://example.com/logo.png)
or the name of a file in the same directory
![optional text](images/logo.png)
| | sample | dose | time | agent |
|--------|----------|------|--------|------------------|
| 1 | GSM91440 | low | 5 min | caffeine |
| 2 | GSM91893 | low | 5 min | caffeine |
| 3 | GSM91428 | low | 5 min | calcofluor white |
| 4 | GSM91881 | low | 5 min | calcofluor white |
sample | dose | time | agent | |
---|---|---|---|---|
1 | GSM91440 | low | 5 min | caffeine |
2 | GSM91893 | low | 5 min | caffeine |
3 | GSM91428 | low | 5 min | calcofluor white |
4 | GSM91881 | low | 5 min | calcofluor white |
Programs are usually written in a monospaced font.
That is, all letters have the same width.
```
this <- is.computer(code)
```
this <- is.computer(code)
This will be very important in the rest of the course
To write a reference for a web page
This is a [clickable text](http://dry-lab.org).
This is a clickable text.
Use it only when strictly necessary
Inside the paragraph we can have *italics*
and **bold** text
Inside the paragraph we can have italics and bold text
We can compare `x` and `data`
We can compare
x
anddata
You have to install R and RStudio in your computer
You have to execute RStudio. Then you will see a screen like this
Click on File → New File → R Markdown
You will get a new window with an example text
It is a text file. One character takes one byte
Colors are only a guide for you. They are not part of the text
Today we will learn how to write text files for our course
This is not Microsoft Word
---
title: "Title"
author: "Author's name"
date: "4 October 2016"
output: html_document
---
Notice that the block is wrapped by ---
(three hyphens)
Write in Markdown
You must identify the structural elements of a document
Something like
Go to our Google Sheet (the same where we how attendance)
Look for your name in “Documents”
Open the document assigned to you
Go to Quiz 2 and answer there
You have 30 minutes for this
Mandatory for everybody
Copy and paste the document text into an Rmarkdown file
You must identify the structural elements and write it on Rmarkdown
The important part is the Structure
It must have the same structure as the original paper
Homework is mandatory. Answers are individual
Send your answers to
andres.aravena+cmb@istanbul.edu.tr
even if you did not finish
Everybody should deliver on time
Do not send questions to this address
Ask your questions in the forum