[R-pkg-devel] Package fails to build on Windows only, builds on GNU/Linux (parse issue)

Irucka Embry iruckaE at mail2world.com
Wed Feb 3 23:20:50 CET 2016


Hi everyone, thank you for the responses.

I did some more searching after I had posted my question. It was a BOM
(Byte Order Mark) issue. I removed the BOM from all of my files and I
have been successful at submitting the packages to CRAN.

Thank you again.

Irucka


<-----Original Message-----> 
>From: Uwe Ligges [ligges at statistik.tu-dortmund.de]
>Sent: 2/3/2016 7:38:05 AM
>To:
lists at dewey.myzen.co.uk;murdoch.duncan at gmail.com;iruckaE at mail2world.com;
r-package-devel at r-
>project.org
>Subject: Re: [R-pkg-devel] Package fails to build on Windows only,
builds on GNU/Linux (parse issue)
>
>On 03.02.2016 14:31, Michael Dewey wrote:
>> Duncan Murdoch <murdoch.duncan at gmail.com> wrote :
>>
>>> On 02/02/2016 2:23 PM, Irucka Embry wrote:
>>>> https://gitlab.com/iembry/install.load/raw/master/R/install_load.R
>>> is
>>>> the link to raw R code for my package. I have been successful at
>>>> building the package on GNU/Linux, but building on Windows fails. I
have
>>>> used R 3.2.3 in both cases.
>>>>
>>>> On Windows, using readLines, this is the result of the Line 1:
>>>>
>>>> [1] "#' Check, Install and Load CRAN & USGS GRAN Packages"
>>>>
>>
>> When I view that line via my webmail and using Chrome browser on
Windows I see a string which 
>seems to start:
>>
>> lower case i possibly with an umlaut
>> closing guillemet
>> inverted question mark
>> hash symbol
>>
>
>
>I guess the file is UTF-8 encoded and you read it under Windows as 
>latin1 or therelike, so declare an encoding.
>
>Best,
>Uwe Ligges
>
>
>
>> whereas the GNU/Linux example just starts hash symbol
>>
>> Hope that helps someone
>>
>>>>
>>>> On GNU/Linux, using readLines, this is the result of Line 1:
>>>>
>>>> [1] "#' Check, Install and Load CRAN & USGS GRAN Packages"
>>>>
>>>>
>>>> Can someone offer suggestions on how to fix this character issue
for
>>>> Windows package development?
>>>
>>> I can't see any difference there. Is that the point, or do you see a
>>> difference?
>>>
>>> What is the exact error message you get when parsing?
>>>
>>> Duncan Murdoch
>>>
>>>>
>>>> I have created the R code with the Kate text editor. I have not had
this
>>>> issue in the past with any of my R packages using the Kate text
editor.
>>>>
>>>> I have a few packages that have the same issue.
>>>>
>>>> Thank you.
>>>>
>>>> Irucka Embry
>>>>
>>>>
>>>> _______________________________________________________________Get
>>> the Free email that has everyone talking at [[alternative HTML
version deleted]]
>>>>
>>>> ______________________________________________
>>>> R-package-devel at r-project.org
>>> mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>>>>
>>>
>>> ______________________________________________
>>> R-package-devel at r-project.org
>>> mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>>
>> ______________________________________________
>> R-package-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>>
>.
> 


<span id=m2wTl><p><font face="Arial, Helvetica, sans-serif" size="2" style="font-size:13.5px">_______________________________________________________________<BR>Get the Free email that has everyone talking at <a href=http://www.mail2world.com target=new>http://www.mail2world.com</a><br>  <font color=#999999>Unlimited Email Storage – POP3 – Calendar – SMS – Translator – Much More!</font></font></span>
	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list