[ESS] ESS buffer eval producing some garbage

Ronaldo Reis Junior chrysopa at gmail.com
Thu Jun 12 14:03:10 CEST 2008


Hi,


I use emacs + ESS and R.

When I user eval buffer on ESS the result is very polluted. For example, 

I have this script:
------------Script.R-----------
### Remover todos os objetos
rm(list=ls())

source("contstep.R")
### Importando a tabela de dados
dados <- read.table("planilhadadosfinal.csv",header=T)

names(dados)

### Modando o vetor para datas
dtensac <- as.Date(dados$dtensac,format="%d/%m/%y")
----------------------------------

When I execute line by line I have this result:

----------Execution line by line-----------

> rm(list=ls())
> source("contstep.R")
> dados <- read.table("planilhadadosfinal.csv",header=T)
> names(dados)
 [1] "dtensac"    "plan"       "bloco"      "ch"         "trat"      
 [6] "fruto"      "dtcolheita" "peso"       "ntt"        "nbp"       
[11] "nbg"        "noutin"     "fprt"       "doenca"     "dfgv"      
[16] "dflv"       "deqt"       "cor"        "tempocolhe" "nflorch"   
> dtensac <- as.Date(dados$dtensac,format="%d/%m/%y")
---------------------------------------------

But when I execute a buffer or a region the result is:

--------Execution a region or buffer-----------
> > > > > > > >  
[1] "dtensac"    "plan"       "bloco"      "ch"         "trat"      
 [6] "fruto"      "dtcolheita" "peso"       "ntt"        "nbp"       
[11] "nbg"        "noutin"     "fprt"       "doenca"     "dfgv"      
[16] "dflv"       "deqt"       "cor"        "tempocolhe" "nflorch"   
> > > > 
------------------------------------------------

The execution line by line is OK, but the other produce a terrible output. How 
to fix it?

My versions:

ii  ess                                   5.3.8~svn3902-1
ii  emacs22-bin-common                    22.2+2-2                             
ii  emacs22-common                        22.2+2-2                             
ii  emacs22-gtk                           22.2+2-2                             

Thanks
Ronaldo
-- 
Leonor ama Ronoel.
                -- palíndromo
--
> Prof. Ronaldo Reis Júnior
|  .''`. UNIMONTES/Depto. Biologia Geral/Lab. de Biologia Computacional
| : :'  : Campus Universitário Prof. Darcy Ribeiro, Vila Mauricéia
| `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil
|   `- Fone: (38) 3229-8187 | ronaldo.reis at unimontes.br | chrysopa at gmail.com
| http://www.ppgcb.unimontes.br/ | ICQ#: 5692561 | LinuxUser#: 205366




More information about the ESS-help mailing list