[R] Do not show a "message d'avis" that qbeta reports

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Wed Oct 20 13:17:30 CEST 2021


Translations are done by the translation teams, listed here: 
<https://developer.r-project.org/TranslationTeams.html>.  If you'd like 
to offer help, you could contact someone on that list.

Duncan Murdoch

On 20/10/2021 6:47 a.m., Marc Girondot via R-help wrote:
> Thanks ! It works.
> 
> So "Warnings" has been translated in French by "Message d'avis :" !
>   > warning("Essai")
> Message d'avis :
> Essai
> 
> It is not the best translation...
> I would prefer: "Attention: "
> 
> Marc
> 
> Le 20/10/2021 à 12:28, Enrico Schumann a écrit :
>> On Wed, 20 Oct 2021, Marc Girondot via R-help writes:
>>
>>> Dear R-helpers
>>>
>>> Do you know how to not show a "message d'avis" that
>>> qbeta reports. suppressMessages and capture.output are
>>> not working.
>>>
>>> (PS I Know that qbeta with shape2 being 1e-7 is
>>> "strange"... this is obtained during an optimization
>>> process. Just I don't want see the messages).
>>>
>>> Thanks
>>>
>>> Marc Girondot
>>>
>>> q <- qbeta(p=c(0.025, 0.975), shape1 = 3.3108797, shape2 = 0.0000001)
>>> Message d'avis :
>>> Dans qbeta(p = c(0.025, 0.975), shape1 = 3.3108797, shape2 = 1e-07) :
>>>     qbeta(a, *) =: x0 with |pbeta(x0,*) - alpha| = 0.024997 is not accurate
>>>
>>> suppressMessages(q <- qbeta(p=c(0.025, 0.975), shape1 =
>>> 3.3108797, shape2 = 0.0000001))
>>> Message d'avis :
>>> Dans qbeta(p = c(0.025, 0.975), shape1 = 3.3108797, shape2 = 1e-07) :
>>>     qbeta(a, *) =: x0 with |pbeta(x0,*) - alpha| = 0.024997 is not accurate
>>>
>>> capture.output(q <- qbeta(p=c(0.025, 0.975), shape1 =
>>> 3.3108797, shape2 = 0.0000001), type = "message")
>>> character(0)
>>> Message d'avis :
>>> Dans qbeta(p = c(0.025, 0.975), shape1 = 3.3108797, shape2 = 1e-07) :
>>>     qbeta(a, *) =: x0 with |pbeta(x0,*) - alpha| = 0.024997 is not accurate
>>>
>>> capture.output(q <- qbeta(p=c(0.025, 0.975), shape1 =
>>> 3.3108797, shape2 = 0.0000001), type = "output")
>>> character(0)
>>> Message d'avis :
>>> Dans qbeta(p = c(0.025, 0.975), shape1 = 3.3108797, shape2 = 1e-07) :
>>>     qbeta(a, *) =: x0 with |pbeta(x0,*) - alpha| = 0.024997 is not accurate
>>>
>> Try 'suppressWarnings'.
>>
>>
> 
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list