This is annoying! I use RKWard on (k)ubuntu(8.10) and Fedora(10). The RKWard GUI editor seems to be adding the DOS carriage return with the line feed. This seems highly irregular for what I thought was a native gnu/linux KDE package.
I found the scripts run fine within rkward but if I go to a console and run a script using say the littler /usr/bin/r wrapper then the damn carriage return characters confound me.
I don't want to have to repeatedly use fromdos every time I edit my R scripts.
So how can I stop this behaviour?
TFAHIA
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Open a script editor, then select Settings->Configure Editor->Open/Save. Make sure "End of line" is set to UNIX. This option only affects newly created files. To make sure the DOS carriage return gets pruned even from files that already have it, uncheck the "Automatic end of line detection" option.
Let us know, if this does not work for you.
Regards
Thomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is annoying! I use RKWard on (k)ubuntu(8.10) and Fedora(10). The RKWard GUI editor seems to be adding the DOS carriage return with the line feed. This seems highly irregular for what I thought was a native gnu/linux KDE package.
I found the scripts run fine within rkward but if I go to a console and run a script using say the littler /usr/bin/r wrapper then the damn carriage return characters confound me.
I don't want to have to repeatedly use fromdos every time I edit my R scripts.
So how can I stop this behaviour?
TFAHIA
Open a script editor, then select Settings->Configure Editor->Open/Save. Make sure "End of line" is set to UNIX. This option only affects newly created files. To make sure the DOS carriage return gets pruned even from files that already have it, uncheck the "Automatic end of line detection" option.
Let us know, if this does not work for you.
Regards
Thomas
Ahh yes, I new someone would be able to help :-)
(problem stemmed from starting up editing R source code from a colleague who was working on a Winblows machine)
After configuring the Editor as you suggested I still had to quit RKWard, restart it, then all was well.
Thanks.