delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/12/02/13:29:55

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB974385828E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1701541794;
bh=FjL+qm2GhNkFJyT81m/nmvoWia7kgy5hXRzRaKL2/gM=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=dL9qMaao8pZTalYOtV0I9J81o2Ah/GrRh96HyyV6yAF5Z1dPqBwbjP2sWV0EohBa+
sGidXYqbyET6TbzIoERrXkYps4SxD2yiTlOwGT8nmV+MLNIwAhSQEx2CMz08Vk1bE9
ZhaDaihy4ZbiSBR+H8UQtqynj10dip9j1isoPP/Q=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2E3673858D33
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2E3673858D33
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701541758; cv=none;
b=tpvZmQGKWMCOASQ2GvMKTjzdCnev4JK16HrbGKJiEWv4Q3OdZnA+MSFzUL9qP+YVMFhCx22blhlAhiw548c/SHz8ZBHIOaMP2mFABBTXEH3FSLgYqgkS67/XQoZ3FF+I2+rH3pGSHkt90+Z8U0ePsd6GNRm8XjKVeQmOyN65BSA=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1701541758; c=relaxed/simple;
bh=AWSyApuUJZjM6x4OpYItQh5bnEx+3A9zQUri1lSZniA=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
b=eNsEuM32j9j6YwWFCd+mNQGwomBiw7fD6I7HOcRlwiyD56vCA4VPCp/gX3unTRLdt68MELrsOzw4Od/ymYkLh0xcFLw2whreollFLq1wE85cf2AxY9JkIltUK/BmdK4kWqpiqRrsMxjNpQn99N5GgDZLTSMi/0XkW8HI0aFRRDE=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1701541755; x=1702146555;
h=content-transfer-encoding:in-reply-to:from:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=7LiI12DnTPZCLiptJJuIDEraYd/tMo8YGGN5VJkVNF0=;
b=Fs7sfadMB6DgIz6wnAzVefA7dU4Wfk935wzhWqziCN1F+TndMw3sObOKnF5j6p3f0p
kMu4hAqtOcWWhqbeD7VIBZ0cdBD+XmE+GvkNJLlFXqWQGck6+eXmDV+A2MsV98Duxh7I
uX0lbIV/X+bK1s/gVI5dWdW/eTgRh8VwBoJHptjgRelPuUZ6wPh8WgEtPuxdLwv2FvN8
abX03rrUSBOxxCy7IVIeEfaiIiYjG8wAegwy3ilCEv0TS1RnnXPLrWEPBxsr3WZ3K3Ck
Kxjgf2KooH7gGceY5kt+Q8wlDSZs12mOBu192k9wkoNM4UmRb8tY10vm14qXbkOQl3pw
MwuA==
X-Gm-Message-State: AOJu0YznVsQMF42n+skGhijcccARxRuF5EEttTwOEosUm4Bz9JbdRu/T
kPqwziWpvgNVj2xRK/WkCv9bwcnD1w8=
X-Google-Smtp-Source: AGHT+IHNxBRIiezSCBZX6TesWWj/EEsbyHgT5mYd05r0CB8ll6KHb0oFnks4PNGLR/AY/gdi5Qty1A==
X-Received: by 2002:a05:600c:2a16:b0:40b:5e59:99f4 with SMTP id
w22-20020a05600c2a1600b0040b5e5999f4mr809073wme.276.1701541754701;
Sat, 02 Dec 2023 10:29:14 -0800 (PST)
Message-ID: <9d3883e8-0fb5-454e-ac96-47e424bfb195@gmail.com>
Date: Sat, 2 Dec 2023 19:29:14 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: R install.package() bug
To: cygwin AT cygwin DOT com
References: <CAKEdzNJrSNKwnBPR0OTUhxK36QHC0rvCbj7+pdhjvVghWYGF_w AT mail DOT gmail DOT com>
In-Reply-To: <CAKEdzNJrSNKwnBPR0OTUhxK36QHC0rvCbj7+pdhjvVghWYGF_w@mail.gmail.com>
X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
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: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Marco Atzeri via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3B2ITt2j029471

On 28/11/2023 06:01, Stephen P Carrier via Cygwin wrote:
> I would like to report an issue with install.packages() experienced today
> using the current R package.
> 
> I installed R 4.3.0 on system:
> 
> # uname -rs
> CYGWIN_NT-10.0-20348 3.4.9-1.x86_64
> 
> I tried to install the DBI package, DBI_1.1.3.tar.gz, downloaded from a
> mirror.
> 
> I used
> 
> install.packages("/path/to/DBI_1.1.13.tar.gz", repos = NULL);
> 
> What happens is:
> 
> -----
> Installing package into ‘/usr/lib/R/site-library’
> (as ‘lib’ is unspecified)
> During startup - Warning message:
> package ‘stats’ in options("defaultPackages") was not found
> * installing *source* package ‘DBI’ ...
> ** package ‘DBI’ successfully unpacked and MD5 sums checked
> ** using staged installation
> Error : Invalid DESCRIPTION file
> 
> Malformed maintainer field.
> 
> See section 'The DESCRIPTION file' in the 'Writing R Extensions'
> manual.
> ERROR: installing package DESCRIPTION failed for package ‘DBI’
> -----
> 
> I looked in the manual to see what DESCRIPTION files should look like.  The
> encoding is specified as UTF-8 in the file so the umlauts sprinkled
> throughout should be fine.  The 'Maintainer:' line contains an umlaut, I
> removed it, after which the package installed without error.  Umlauts
> elsewhere in the DESCRIPTION file are not a problem.
> 
> Seems like a bug.  I don't have R 4.3.0 installed on a Linux system to test
> if the bug is upstream from Cygwin, and my immediate problem is solved with
> a simple workaround.
> 
> Thanks to all for maintaining this fine product (Cygwin kernel and all the
> packages).
> 
> --Stephen Carrier

It is an UTF8 issue, it will need some time to understand why
the code page interpretation is wrong for R and it is not using UTF8

As work around:

$ tar -xf DBI-1.1.3.tar.gz

$ cd DBI-1.1.3

$ grep Mü DESCRIPTION
     person("Kirill", "Müller", , "krlmlr+r AT mailbox DOT org", role = 
c("aut", "cre"),

$ sed -e "s/Müller/Mueller/" -i DESCRIPTION

$ grep ller DESCRIPTION
     person("Kirill", "Mueller", , "krlmlr+r AT mailbox DOT org", role = 
c("aut", "cre"),

$ cd ..

$ tar -xzf DBI-1.1.3.tar.gz DBI-1.1.3

and then in R:

 > install.packages("/tmp/DBI-1.1.3.tar.gz", repos = NULL);
Installing package into ‘/usr/lib/R/site-library’
(as ‘lib’ is unspecified)
* installing *source* package ‘DBI’ ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation 
path
* DONE (DBI)


Regards Marco

PS: I see only 1.1.3 on https://github.com/r-dbi/DBI/releases


-- 
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