Yes, it also occurs with WriteXLS version 3.2.1.

This test on several computers always leads to the same error.

Hugo Varet



2013/8/17 Rainer Hurling <rhurlin@gwdg.de>

> Am 13.08.2013 19:40, schrieb Hugo Varet:
> > Dear R users,
> >
> > I've just updated the WriteXLS package (on R 3.0.1) and I now have an
> error
> > when exporting a data.frame with the argument Encoding="latin1". For
> > example, these two lines work:
> >    library(WriteXLS)
> >    WriteXLS("iris", "iris.xls")
> > whereas these ones don't work:
> >   library(WriteXLS)
> >   WriteXLS("iris", "irislatin1.xls",Encoding="latin1")
> > I get this message:
> > Argument "Sepal.Length" isn't numeric in subroutine entry at
> > C:/Perl64/lib/Encode.pm line 217, <CSVFILE> line 1.
> > Modification of a read-only value attempted at C:/Perl64/lib/Encode.pm
> line
> > 218, <CSVFILE> line 1.
> > The Perl script 'WriteXLS.pl' failed to run successfully.
> > Message d'avis :
> > l'exécution de la commande 'perl
> > -I"C:/Users/varet/Documents/R/win-library/3.0/WriteXLS/Perl"
> > "C:/Users/varet/Documents/R/win-library/3.0/WriteXLS/Perl/WriteXLS.pl"
> > --CSVPath "C:\Users\varet\AppData\Local\Temp\RtmpEzqFNz/WriteXLS"
> --verbose
> > FALSE --AdjWidth FALSE --AutoFilter FALSE --BoldHeaderRow FALSE
> --FreezeRow
> > 0 --FreezeCol 0 --Encoding latin1
> "C:\Users\varet\Desktop\irislatin1.xls"'
> > renvoie un statut 255
> >
> > Does anyone know why it failed? May it be a problem with Perl?
> >
> > Thanks for your help,
> >
> > Hugo Varet
>
> Does this also occur with WriteXLS version 3.2.1 ?
>
>

	[[alternative HTML version deleted]]

