From mnel@ @ending from doh@he@lth@n@w@gov@@u  Thu May 17 13:53:27 2018
From: mnel@ @ending from doh@he@lth@n@w@gov@@u (NELSON, Michael)
Date: Thu, 17 May 2018 11:53:27 +0000
Subject: [Rd] Patch for bug 17256 'possible bug in writeForeignSAS in the
 foreign library when string is NA'
Message-ID: <D10658826EC4E24A903AC423BC06BAF70247C3927A@DOHNSMXDB03.doh.health.nsw.gov.au>

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)

Regards

Michael Nelson

_______________________________________________________________________________________________________
Disclaimer: This message is intended for the addressee named and may contain confidential information.
If you are not the intended recipient, please delete it and notify the sender.
Views expressed in this message are those of the individual sender, and are not necessarily the views of the NSW Ministry of Health.
_______________________________________________________________________________________________________
This email has been scanned for the NSW Ministry of Health by the Websense Hosted Email Security System.
Emails and attachments are monitored to ensure compliance with the NSW Ministry of Health's Electronic Messaging Policy.
_______________________________________________________________________________________________________


[Rd] Patch for bug 17256 'possible bug in writeForeignSAS in the foreign library when string is NA'
NELSON, Michael