Hello,
The sys.source function does not have an encoding argument, and does not accept
a connection (created by file):
> sys.source("syssource.R")
Error in parse(n = -1, file = file) :
invalid multibyte character in parser at line 2
Here we could simply pass encoding or ... to parse, the next one is more
confusing:
> sys.source( file( "syssource.R", encoding =
"windows-1252" ) )
Error in sys.source(file("syssource.R", encoding =
"windows-1252")) :
'5' is not an existing file
the syssource.R file contains this :
<file>
critère <- 1
</file>
I can try to fix this, but maybe a decision needs to be made first about how ?
just add the encoding argument to sys.source, add the ... to sys.source, handle
connection in sys.source ?
> version
_
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status Under development (unstable)
major 2
minor 9.0
year 2009
month 02
day 08
svn rev 47879
language R
version.string R version 2.9.0 Under development (unstable) (2009-02-08 r47879)
Romain
--
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
[[alternative HTML version deleted]]