That definitely makes it easy. Thanks.

-----Original Message-----
From: R-package-devel <r-package-devel-boun...@r-project.org> On Behalf Of Ralf 
Stubner
Sent: Friday, May 10, 2019 4:41 PM
To: r-package-devel@r-project.org
Subject: Re: [R-pkg-devel] Compilation used the "non-portable flag"

On 10.05.19 22:32, Goldfeld, Keith wrote:
> I am submitting an update to my package ‘simstudy’, and the ran the rhub 
> checks. I received a note from one of the four platforms (the other three 
> passed). The Ubuntu Linux 16.04 objected to the compilation flags:
> 
> * checking compilation flags used ... NOTE Compilation used the 
> following non-portable flag(s):
>   ‘-Wdate-time’ ‘-Werror=format-security’ ‘-Wformat’

You can ignore these messages, c.f. 
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_r-2Dhub_rhub_issues_264&d=DwIFaQ&c=j5oPpO0eBH1iio48DtsedeElZfc04rx3ExJHeIIZuCs&r=fPRk5fx5iys38LPukC4wczPXS5KI6iyvPUM-ICDfxh8&m=Y22gFyc69PfyQYs7TnMqsYGg7I65FrV3X2JPEm6_gqM&s=pAEaTHOVB2wL09DSdHLlPHHV1rTEZlSeraj4ENBsUsk&e=

> I did some searching and someone suggested I create a ‘Makevars’ in the ~/.R 
> directory (which is different from my package directory). This is what I 
> included in the Makevars file:

You cannot remove these compiler flags in a package's Makevars file.
Either ignore the warning (that's what I am doing when using rhub), or ask the 
rhub maintainer to add a suitable ~/.R/Makevars file.

Greetings
Ralf

--
Ralf Stubner
Senior Software Engineer / Trainer

daqana GmbH
Dortustraße 48
14467 Potsdam

T: +49 331 23 61 93 11
F: +49 331 23 61 93 90
M: +49 162 20 91 196
Mail: ralf.stub...@daqana.com

Sitz: Potsdam
Register: AG Potsdam HRB 27966
Ust.-IdNr.: DE300072622
Geschäftsführer: Dr.-Ing. Stefan Knirsch, Prof. Dr. Dr. Karl-Kuno Kunze


------------------------------------------------------------
This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=================================
______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to