[R-SIG-Mac] Warning in script
Ivan Calandra
ivan.calandra at uni-hamburg.de
Tue Dec 20 09:33:08 CET 2011
Thanks Berend,
I've just added an extra enter at the end and it works fine. So simple...!
Ivan
Le 19/12/11 17:40, Berend Hasselman a écrit :
> On 19-12-2011, at 17:30, Ivan Calandra wrote:
>
>> Dear R-Mac users,
>>
>> I have a script
>> (http://dl.dropbox.com/u/25185399/Rfunctions_Calandra.R) containing
>> functions that I source() when I want to use them.
>>
>> When I source() it on MacOS 10.6, I get this warning:
>> In readLines(file) :
>> ligne finale incomplète trouvée dans '/.../Rallfun-v1_Calandra.R'
>> Translation: incomplete final line found in '...'
>>
>> sessionInfo()
>> R version 2.14.0 (2011-10-31)
>> Platform: i386-apple-darwin9.8.0/i386 (32-bit)
>> locale:
>> [1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8
>> attached base packages:
>> [1] stats graphics grDevices utils datasets methods base
>>
>> As you can see, the last line is ####
>> If I delete this line, I still get the same warning, which makes me
>> think that this has nothing to do with what I typed, but with some
>> encoding stuff. I have to say that I created this script on Windows
>> XP (with the R editor), and I never got this problem on Windows (at
>> least up to R2.13.1).
>>
>> Since it's a warning, it works fine, but I would like to fix this
>> problem because it is a bit annoying to always get this warning.
>
> See
> http://r.789695.n4.nabble.com/incomplete-final-line-found-warning-td4181838.html
>
> Berend
>
>
--
Ivan CALANDRA
Université de Bourgogne
UMR CNRS 5561 Biogéosciences
6 Boulevard Gabriel
21000 Dijon, FRANCE
ivan.calandra at uni-hamburg.de
More information about the R-SIG-Mac
mailing list