Ich habe ein Problem mit dem tufte
Abschlag Stil ...Code Stücke schweben in Randbereich mit Tufte Abschlag r
Einige meiner Codes Stücke sind nicht richtig formatiert. Die neue Zeile wird nicht erkannt und der Text wird in den Seitenbereich verschoben, in dem sich die Kommentare und Bilder befinden (das ist das richtige Wort?).
Beispiel:
---
title: "test"
author: "user"
date: "Now"
output:
tufte::tufte_handout:
number_sections: yes
toc: yes
toc_depth: 1
---
Some test lines
```{r, eval=FALSE}
re_quantify_setting <-
parameters[,'Value'][parameters[,'Parameter'] == 'Re-quantify']
if(re_quantify_setting != 'False') {
stop('Re-quantify was set to \'True\'! ',
'Please reanalyse data with correct MaxQuant settings.')
}
```
```{marginfigure}
Also a common problem is that people often just mark all lines of code and then
just executing (Run) it. Here it might happen that an error occured at the beginning
of the script but was not seen by the user because code is executing so fast.
This can be prevent by using the **Source**-button. The script will stop in case
of an error message!
```
Und hier ist das Ergebnis:
Hat jemand eine Idee, warum dies geschieht und wie die richtigen Zeilenumbrüche bekommen?
Hm, aber nicht bricht noch nicht zum Beispiel die erste Zeile, wo ich eine neue Zeile haben nach '<-'. – drmariod
@drmariod Leider habe ich diese Zeile nicht beachtet. Ich habe meine Antwort mit einer Alternative aktualisiert, die für Ihr Beispiel funktioniert – scoa