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 technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.