Hello every one

Working under Windows Xp in French, and R version 2.4.0 (and : >
localeToCharset()  :  "ISO8859-1" )
I am trying to source a file with basic commands.

source("R files/InputFile Analysis (Calculs et mises à l'échelle - gestion
des pb d'unités).r")

and it works fine as long as I do not use command like these ones :

file_table[[2]]$MES.boue.recirculée.autosurveillance   <-
1000*file_table[[2]]$MES.boue.recirculée.autosurveillance
file_table[[2]]$MES.boue.recirculée.en.continu           <-
1000*file_table[[2]]$MES.boue.recirculée.en.continu

These commands work perfectly when used individually and submitted directly.
But when I am sourcing the command file including these lines, I get the
following error message :

Erreur dans parse(file, n = -1, NULL, "?") : erreur de syntaxe à la ligne
35: MES.liqueur.mixte.en.continu<-
1000*file_table[[2]]$MES.liqueur.mixte.en.continu
36:     file_table[[2]]$MES.boue.recircul‚

I guess that the problem is coming form the "é" in my colnames as the
following command :

file_table[[2]]$MES.liqueur.mixte.autosurveillance<-
1000*file_table[[2]]$MES.liqueur.mixte.autosurveillance

works fine, even when sourced ...

My colnames are make.names() output, and I am wondering how to set up things
to allow "é" in sourced commands (or enventually to transform "é" in "e"
with mae.names).
Does any body know how ?

Thanks, and sincerely yours,

Pascal Boisson

        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to