delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/05/05/10:56:18

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 49CBE388E80C
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=SystematicSw.ab.ca
Authentication-Results: sourceware.org;
spf=none smtp.mailfrom=brian DOT inglis AT systematicsw DOT ab DOT ca
X-Authority-Analysis: v=2.3 cv=OubUNx3t c=1 sm=1 tr=0
a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17
a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=fUOXEt1cAAAA:8 a=uPZiAMpXAAAA:8
a=ZgnnjyLeYf-KzQE-LeEA:9 a=QEXdDO2ut3YA:10 a=_5pPBojKM3oA:10
a=uIq0c7sKJzkA:10 a=sRI3_1zDfAgwuvI8zelB:22 a=IGrPI4CEQtjHBCxVeCp9:22
Subject: Re: R does not handle package non-ASCII DESCRIPTION files properly
To: cygwin AT cygwin DOT com
References: <9164cff70d13d9f7ca451f42fc868a14 AT mhoenicka DOT de>
<129c4e64-4051-0cc2-0706-c39eaacbdc9e AT gmail DOT com>
<f60e7c3282f47182b29911874f4b2853 AT mhoenicka DOT de>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Autocrypt: addr=Brian DOT Inglis AT SystematicSw DOT ab DOT ca; prefer-encrypt=mutual;
keydata=
mDMEXopx8xYJKwYBBAHaRw8BAQdAnCK0qv/xwUCCZQoA9BHRYpstERrspfT0NkUWQVuoePa0
LkJyaWFuIEluZ2xpcyA8QnJpYW4uSW5nbGlzQFN5c3RlbWF0aWNTdy5hYi5jYT6IlgQTFggA
PhYhBMM5/lbU970GBS2bZB62lxu92I8YBQJeinHzAhsDBQkJZgGABQsJCAcCBhUKCQgLAgQW
AgMBAh4BAheAAAoJEB62lxu92I8Y0ioBAI8xrggNxziAVmr+Xm6nnyjoujMqWcq3oEhlYGAO
WacZAQDFtdDx2koSVSoOmfaOyRTbIWSf9/Cjai29060fsmdsDLg4BF6KcfMSCisGAQQBl1UB
BQEBB0Awv8kHI2PaEgViDqzbnoe8B9KMHoBZLS92HdC7ZPh8HQMBCAeIfgQYFggAJhYhBMM5
/lbU970GBS2bZB62lxu92I8YBQJeinHzAhsMBQkJZgGAAAoJEB62lxu92I8YZwUBAJw/74rF
IyaSsGI7ewCdCy88Lce/kdwX7zGwid+f8NZ3AQC/ezTFFi5obXnyMxZJN464nPXiggtT9gN5
RSyTY8X+AQ==
Organization: Systematic Software
Message-ID: <fd307010-3db0-9845-f217-5ae40c519b46@SystematicSw.ab.ca>
Date: Tue, 5 May 2020 08:55:14 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.7.0
MIME-Version: 1.0
In-Reply-To: <f60e7c3282f47182b29911874f4b2853@mhoenicka.de>
X-CMAE-Envelope: MS4wfMxozwBxhcf0r93j/F7+qChULF+XuMq76qn+gWmSr3SUMKuWttBE4vjD1OV4d3FuakLFJO1AbFGB+yJ0QOHycAf7S2aBWbCzUMchT+QkaKFpRACEyg35
IkP2DBiimDU9FRS7kiAhZfuqs4ohyRFDZJyFJmxbOkIqwQ2Lq8XV6dbtidKDnjAxd3ahMQNXP2KsuQ==
X-Spam-Status: No, score=-15.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 045EtxCb027155

On 2020-05-05 02:47, Markus Hoenicka wrote:
> Am 2020-04-30 22:17, schrieb Marco Atzeri via Cygwin:
>> Am 30.04.2020 um 17:28 schrieb Markus Hoenicka:
>>> I've contacted the processx package maintainer on a problem reported here
>>> previously (see https://cygwin.com/pipermail/cygwin/2020-April/244667.html).
>>> He suggested to try the github version but that triggered a different type of
>>> error which does not seem to be package-specific.
>>>
>>> 1st try: build from a local copy of the github package sources with default
>>> locale settings on a German Windows 10 system
>>>
>>>> install.packages("/cygdrive/c/Temp/processx-master",repos=NULL,type="source")

>>> Installing package into ‘/usr/lib/R/site-library’
>>> (as ‘lib’ is unspecified)
>>> * installing *source* package ‘processx’ ...
>>> ** using staged installation
>>> Error : Invalid DESCRIPTION file
>>>
>>> Authors AT R field gives no person with maintainer role, valid email
>>> address and non-empty name.
>>>
>>> See section 'The DESCRIPTION file' in the 'Writing R Extensions'
>>> manual.
>>>
>>> ERROR: installing package DESCRIPTION failed for package ‘processx’
>>> * removing ‘/usr/lib/R/site-library/processx’
>>> Warning message:
>>> In install.packages("/cygdrive/c/Temp/processx-master", repos = NULL,  :
>>>    installation of package ‘/cygdrive/c/Temp/processx-master’ had non-zero
>>> exit status

>> Noted. I will look on both the two issues but it could take a bit.
>> I never looked at the build process of R packages in such details

> kind of "while you're at it": I've noticed one additional problem with non-ASCII
> characters. This may or may not be related to the problem reported above.
> Several packages throw an error during installation, in my case questionr,
> readr, pls, and vegan. The output of the latter is shown here:
> 
> installing to /usr/lib/R/site-library/00LOCK-vegan/00new/vegan/libs
> ** R
> ** data
> ** inst
> ** byte-compile and prepare package for lazy loading
> ** help
> *** installing help indices
> Error in Rd_info(db[[i]]) :
>   missing/empty \title field in
> '/tmp/RtmprL23H1/R.INSTALLffe51949f2e2/vegan/man/sipoo.Rd'
> Rd files must have a non-empty \title.
> See chapter 'Writing R documentation' in manual 'Writing R Extensions'.
> * removing ‘/usr/lib/R/site-library/vegan’
> 
> The file in question (man/sipoo.Rd) starts like this:
> 
> \encoding{UTF-8}
> \name{sipoo}
> \alias{sipoo}
> \alias{sipoo.map}
> \docType{data}
> \title{ Birds in the Archipelago of Sipoo (Sibbo and Borgå)}
> 
> Please note that the encoding is set to UTF-8 explicitely. Nonetheless, the a
> with overring in "Borgå" seems to mess up the title, which makes R think the
> \title field is missing. Changing the å to a circumvents this problem. I've also
> noticed that non-ASCII characters outside the title field do not hurt at all.

Add "Encoding: UTF-8" to the package DESCRIPTION file and remove from .Rd files,
as documented near the bottom of the section:

https://cran.r-project.org/doc/manuals/R-exts.html#The-DESCRIPTION-file

referenced by:

https://stackoverflow.com/questions/18080303/rd-files-with-different-encoding

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019