From m@echler @ending from @t@t@m@th@ethz@ch  Thu May 17 15:34:15 2018
From: m@echler @ending from @t@t@m@th@ethz@ch (Martin Maechler)
Date: Thu, 17 May 2018 15:34:15 +0200
Subject: [Rd] 
 Patch for bug 17256 'possible bug in writeForeignSAS in the
 foreign library when string is NA'
In-Reply-To: <D10658826EC4E24A903AC423BC06BAF70247C3927A@DOHNSMXDB03.doh.health.nsw.gov.au>
References: <D10658826EC4E24A903AC423BC06BAF70247C3927A@DOHNSMXDB03.doh.health.nsw.gov.au>
Message-ID: <23293.34007.645572.435836@stat.math.ethz.ch>

>>>>> NELSON, Michael <mnels at doh.health.nsw.gov.au>
>>>>>     on Thu, 17 May 2018 11:53:27 +0000 writes:

    > Attached is a patch to fix
    > https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17256
    > 'possible bug in writeForeignSAS in the foreign library
    > when string is NA'



    > The patch 1. fixing the case where there were NA within a
    > character column, and the case where all values are
    > strings of length 0 2. general replacement of calls to
    > `sapply` with `vapply` (and replacing any(is.na()) with
    > anyNA.



    > Happy to add in bugzilla (but don't have an account there)

The patch attachment did not make it through the (antispam /
antivirus /... ) filters:
Such attachments should have MIME type text/plain.

I have created a bugzilla account for you(r e-mail) and you
should've gotten an auto-email with info.

Thank you in advance for helping with this.

In this special case, we'd also be happy for other users testing the
problem and the fix, as access to SAS may have become difficult
for most R core members.

Martin Maechler
ETH Zurich



[Rd] Patch for bug 17256 'possible bug in writeForeignSAS in the foreign library when string is NA'
Martin Maechler