From du@@@@dr|@n @end|ng |rom gm@||@com  Fri Dec  3 19:55:53 2021
From: du@@@@dr|@n @end|ng |rom gm@||@com (=?UTF-8?B?QWRyaWFuIER1yJlh?=)
Date: Fri, 3 Dec 2021 20:55:53 +0200
Subject: [Rd] capturing multiple warnings in tryCatch()
In-Reply-To: <8B6460C6-78A9-414E-8353-A817CD7A5292@mcmaster.ca>
References: <E3B708C1-8E1D-41A0-842A-9C05D229B3DB@mcmaster.ca>
 <516D77A0-7503-4695-A45F-1162ED816FCF@R-project.org>
 <CAFDcVCQuFVXJFn812gbLcDcY=gBeKwwXm8AQsW5Pm+wqpTzRoQ@mail.gmail.com>
 <8B6460C6-78A9-414E-8353-A817CD7A5292@mcmaster.ca>
Message-ID: <CAJ=0CtAVpv6QKAZwWxEB3fsjUD8PA6+-nBYnok=Kffa_SfNF3Q@mail.gmail.com>

On Fri, 3 Dec 2021 at 00:37, Fox, John <jfox at mcmaster.ca> wrote:

> Dear Henrik, Simon, and Adrian,
>
> As it turns out Adrian's admisc::tryCatchWEM() *almost* does what I want,
> which is both to capture all messages and the result of the expression
> (rather than the visible representation of the result). I was easily able
> to modify tryCatchWEM() to return the result.
>

Glad it helps.
I would be happy to improve the function, should you send a reprex with the
desired final result.

Best wishes,
Adrian

	[[alternative HTML version deleted]]



[Rd] capturing multiple warnings in tryCatch()
=?UTF-8?B?QWRyaWFuIER1yJlh?=