Dear R-users,
having a bit of experience with R under windows, I recently switched to
linux (ubuntu 10.4, 64-bit).
I'm using gedit 2.30.3 and GNOME Terminal 2.30.2
Everything works fine, except that occasionally gedit and/or the terminal
seem to behave strangely.
For example:
Thr_min <- 0
Thr_max <- 10
Thr_grid <- seq(from=Thr_min,to=Thr_max,length=101)
cn_best <- 34
Thr <- Thr_grid[cn_best]
which gives output
> Thr_min<- 0
> Thr_max<- 10
> Thr_grid<- seq(from=Thr_min,to=Thr_max,length=101)
> cn_best<- 34
> Thr_<- Thr_grid[cn_best]
Hence, I end up with a variable Thr_ instead of Thr
Apparently this happens because of the 2 tabs in the last statement, and the
fact that at that point there
exist other variables with names starting with Thr_
(sorry if those tabs did not show up correctly in the format of this e-mail;
in the code above I used 1 or 2 tabs to have the assignment operators
alligned)
Of course the problem could be avoided by leaving out the tabs, changing the
variable names, or running the code
using the source command. Nonetheless, I would be very much interested in
running the above code correctly
by copy-pasting from gedit.
Does anyone have ideas how to change the behavior of R, gedit and/or the
GNOME terminal ?
Thanks !
Willem Kruijer
Wageningen, Netherlands
[[alternative HTML version deleted]]