Menu

rkward editor adding dos "carriage return"??

Help
2009-06-17
2013-01-15
  • Blair Smith

    Blair Smith - 2009-06-17

    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

     
    • Thomas Friedrichsmeier

      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

       
    • Blair Smith

      Blair Smith - 2009-06-18

      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.

       
MongoDB Logo MongoDB