[R] Error: Line starting ' ...' is malformed!

MacQueen, Don macqueen1 at llnl.gov
Mon Jul 29 16:47:34 CEST 2013

A recent version of the R extension manual says,

"For maximal portability, the ‘DESCRIPTION’ file should be written
entirely in ASCII — if this is not possible it must contain an ‘Encoding’
field (see below)."

It also says, regarding the DESCRIPTION file,

"Fields start with an ASCII name immediately followed by a colon: the
value starts after the colon and a space."

Don MacQueen

Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550

On 7/26/13 11:08 AM, "Ross Boylan" <ross at biostat.ucsf.edu> wrote:

>A DESCRIPTION file begins with 0xFFFE and
>DESCRIPTION: Little-endian UTF-16 Unicode text, with CRLF, CR line
>I think it was created on Windows.
>In R (2,15,1 on Debian GNU/Linux), using roxygen2, I get
>> roxygenize("../GitHub/mice")
>Error: Line starting '��P ...' is malformed!
>Enter a frame number, or 0 to exit
>1: roxygenize("../GitHub/mice")
>2: read.description(DESCRIPTION)
>3: read.dcf(file)
>Selection: 3
>Called from: read.description(DESCRIPTION)
>Browse[1]> Q
>I'm not sure if the first 2 characters after line starting ', which are
>377, 376, will survive email; I stripped them out of the subject line.
>The files (DESCRIPTION isn't the only one) have also caused trouble for
>(even on  Windows 7), since it thinks they are binary.
>Any advice about what to do?
>I'm reluctant to change the format of the files because it's not my
>Ross Boylan
>R-help at r-project.org mailing list
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list