It is very strange that R appears to ignore the last line of my .Rprofile
.
For example, in .Rprofile
...
test<-function()1 # without line ending
And thus test
is never loaded although the rest is loaded successfully. If I load it manually, source(".Rprofile")
, test
loads fine.
Is it the desired behaviour?
Under R studio with R 3.0 + in Linux
Can any one reproduce this?
The most commonly used are "\t" for TAB, "\n" for new-line, and "\\" for a (single) backslash character.
Rprofile file is found in C:\Program Files\R\R-3.4. 1\etc and can be edited by loading it into Notepad++.
This is a super annoying "feature" - the last line is silently ignored if it does not have a trailing newline.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With