You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For names 17 and 18, the line ended with '---- ', i.e. there
were four spaces at the end.
Why did 4 spaces get there. In RStudio version 0.98_308, as in the previous
development version, typing the 'Enter' key in a code file takes one, not to the
beginning of the next line, but to the end of a line that has four spaces.
(This, even though I turned off 'Auto-indent code after paste' under the Code
Editing option.) Before typing on a new line, I navigated to the start of the
line, without deleting the spaces.
I am using knitr_1.4.1
The text was updated successfully, but these errors were encountered:
Actually, 1 space following the final '----' is enough to trigger the problem.
I have not tried other possibilities, e.g., '-- '.
It would be worth mentioning the use of knitr:::knit_code$get() in documents
that describe code externalization. It is a vital aid for checking out issues
with the input of external code chunks.
A further note. What I identified as an RStudio issue (the initial
reason for the 4 spaces) arose because I'd accidentally
created an uncompleted code line in an earlier code chunk.
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
For names 17 and 18, the line ended with '---- ', i.e. there
were four spaces at the end.
Why did 4 spaces get there. In RStudio version 0.98_308, as in the previous
development version, typing the 'Enter' key in a code file takes one, not to the
beginning of the next line, but to the end of a line that has four spaces.
(This, even though I turned off 'Auto-indent code after paste' under the Code
Editing option.) Before typing on a new line, I navigated to the start of the
line, without deleting the spaces.
I am using knitr_1.4.1
The text was updated successfully, but these errors were encountered: