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

2021-10-20 Thread SciViews
Martin Maechler wrote:
> Currently, the French team is just one person


This is not quite true. The people that contributed to the translation in 
French are listed here: https://github.com/phgrosjean/rfrench 
. As you can see, there is a total of 
nine people among which two have actively contributed to the update of the 
translations for R 4.1. The page 
https://developer.r-project.org/TranslationTeams.html 
 only exhibits the name 
of the contact person for each team.

Regarding the translation of “Warning” into “Message d’avis” raised by Marc, I 
gave him an extended explanation offline, that I summarise here. “Warning” was 
finally translated into “avis” after considering “avertissement”, which is 
closer to the meaning in the context. However, we got problems with 
“avertissement” because some sentences became longer than in English. This 
produced sometimes weird display of the whole message, given that there are 
(was?) hard breaks in the middle of some of them.

Finally, it is not “warning” that is translated to “message d’avis”, but it is 
“warning message” in the original sentences. For instance, for R 4.1.0 I, 
base/po/R-fr.po, I got line 1660: “Summary of (a total of %d) warning 
messages:” I don’t think that the translation proposed by Marc is good in that 
context. It would give "Résumé (d’un total de %d) attentions:” Indeed, it is 
currently Résumé (d’un total de %d) messages d’avis:”

All the best,

Philippe Grosjean

> On 20 Oct 2021, at 22:11, Martin Maechler  wrote:
> 
>> Duncan Murdoch 
>>on Wed, 20 Oct 2021 07:17:30 -0400 writes:
> 
>> Translations are done by the translation teams, listed
>> here:
>> .
>> If you'd like to offer help, you could contact someone on
>> that list.
> 
>> Duncan Murdoch
> 
> Indeed.   Currently, the French team is just one person, and
> maybe they will be happy to share the workload  or to get
> another pair of eyes to look at it...
> 
> Martin Maechler
> 
> 
>> 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.001) 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.001)) 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.001), 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.001), 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@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.
>>> 
> 
>> __
>> R-help@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.
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read 

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

2021-10-20 Thread Martin Maechler
> Duncan Murdoch 
> on Wed, 20 Oct 2021 07:17:30 -0400 writes:

> Translations are done by the translation teams, listed
> here:
> .
> If you'd like to offer help, you could contact someone on
> that list.

> Duncan Murdoch

Indeed.   Currently, the French team is just one person, and
maybe they will be happy to share the workload  or to get
another pair of eyes to look at it...

Martin Maechler


> 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.001) 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.001)) 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.001), 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.001), 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@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.
>> 

> __
> R-help@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.

__
R-help@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.


Re: [R] small object but huge RData file exported

2021-10-20 Thread Henrik Bengtsson
Example illustrating what Duncan says:

> make_formula <- function() { large <- rnorm(1e6); x ~ y }
> formula <- make_formula()

# "Apparent" size of object
> object.size(formula)
728 bytes

# Actual serialization size
> length(serialize(formula, connection = NULL))
[1] 8000203

# A better size estimate
> lobstr::obj_size(formula)
8,000,888 B

/Henrik

On Wed, Oct 20, 2021 at 12:57 PM Duncan Murdoch
 wrote:
>
> On 20/10/2021 9:20 a.m., Jinsong Zhao wrote:
> > On 2021/10/20 21:05, Duncan Murdoch wrote:
> >> On 20/10/2021 8:57 a.m., Jinsong Zhao wrote:
> >>> Hi there,
> >>>
> >>> I have a RData file that is obtained by save.image() with size about
> >>> 74.0 MB (77,608,222 bytes).
> >>>
> >>> When load into R, I measured the size of each object with object.size():
> >>>
>  object.size(combn.rda.m)
> >>> 105448 bytes
>  object.size(cross)
> >>> 102064 bytes
>  object.size(denitr.1)
> >>> 25032 bytes
>  object.size(rda.denitr.1)
> >>> 600280 bytes
>  object.size(xh)
> >>> 7792 bytes
>  object.size(xh.x)
> >>> 6064 bytes
>  object.size(xh.x.1)
> >>> 24144 bytes
>  object.size(xh.x.2)
> >>> 24144 bytes
>  object.size(xh.x.3)
> >>> 24144 bytes
>  object.size(xh.y)
> >>> 2384 bytes
> >>>
> >>> There are all small objects.
> >>>
> >>> If I delete the largest one "rda.denitr.1", and save.image("xx.RData").
> >>> It has the size of 22.6 KB (23,244 bytes). All seem OK.
> >>>
> >>> However, when I save(rda.denitr.1, file = "yy.RData"), then it has the
> >>> size of 73.9 MB (77,574,869 bytes).
> >>>
> >>> I don't know why...
> >>>
> >>> Any hint?
> >>
> >> As the docs for object.size() say, "Exactly which parts of the memory
> >> allocation should be attributed to which object is not clear-cut."  In
> >> particular, if a function or formula has an associated environment, it
> >> isn't included, but it is sometimes saved in the image.
> >>
> >> So I'd suspect rda.denitr.1 contains something that references an
> >> environment, and it's an environment that would be saved.  (I forget the
> >> exact rules, but I think that means it's not the global environment and
> >> it's not a package environment.)
> >>
> >> Duncan Murdoch
> >
> >
> > The rda.denitr.1 is only a list with length 2:
> > rda.denitr.1[[1]] is a vector with length 10;
> > rda.denitr.2[[2]] is a list with the length 10. rda.denitr.1[[2]][[1]]
> > to rda.denitr.1[[2]][[10]] are small RDA objects generated by rda() from
> > vegan package.
> >
> > If I
> >   > a <- rda.denitr.1[[2]][[1]]
> >   > object.size(a)
> > 59896 bytes
> >   > save(a, file = "abc.RData")
> > It also has a large size of 73.9 MB (77,536,611 bytes)
> >
> > Jinsong
> >
>
> The rda() function uses formulas.  If it saves the formula in the
> result, then it references the environment of that formula, typically
> the environment where the formula was created.
>
> Duncan Murdoch
>
> __
> R-help@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.

__
R-help@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.


Re: [R] small object but huge RData file exported

2021-10-20 Thread Duncan Murdoch

On 20/10/2021 9:20 a.m., Jinsong Zhao wrote:

On 2021/10/20 21:05, Duncan Murdoch wrote:

On 20/10/2021 8:57 a.m., Jinsong Zhao wrote:

Hi there,

I have a RData file that is obtained by save.image() with size about
74.0 MB (77,608,222 bytes).

When load into R, I measured the size of each object with object.size():


object.size(combn.rda.m)

105448 bytes

object.size(cross)

102064 bytes

object.size(denitr.1)

25032 bytes

object.size(rda.denitr.1)

600280 bytes

object.size(xh)

7792 bytes

object.size(xh.x)

6064 bytes

object.size(xh.x.1)

24144 bytes

object.size(xh.x.2)

24144 bytes

object.size(xh.x.3)

24144 bytes

object.size(xh.y)

2384 bytes

There are all small objects.

If I delete the largest one "rda.denitr.1", and save.image("xx.RData").
It has the size of 22.6 KB (23,244 bytes). All seem OK.

However, when I save(rda.denitr.1, file = "yy.RData"), then it has the
size of 73.9 MB (77,574,869 bytes).

I don't know why...

Any hint?


As the docs for object.size() say, "Exactly which parts of the memory
allocation should be attributed to which object is not clear-cut."  In
particular, if a function or formula has an associated environment, it
isn't included, but it is sometimes saved in the image.

So I'd suspect rda.denitr.1 contains something that references an
environment, and it's an environment that would be saved.  (I forget the
exact rules, but I think that means it's not the global environment and
it's not a package environment.)

Duncan Murdoch



The rda.denitr.1 is only a list with length 2:
rda.denitr.1[[1]] is a vector with length 10;
rda.denitr.2[[2]] is a list with the length 10. rda.denitr.1[[2]][[1]]
to rda.denitr.1[[2]][[10]] are small RDA objects generated by rda() from
vegan package.

If I
  > a <- rda.denitr.1[[2]][[1]]
  > object.size(a)
59896 bytes
  > save(a, file = "abc.RData")
It also has a large size of 73.9 MB (77,536,611 bytes)

Jinsong



The rda() function uses formulas.  If it saves the formula in the 
result, then it references the environment of that formula, typically 
the environment where the formula was created.


Duncan Murdoch

__
R-help@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.


Re: [ESS] emacs-ess and the dreaded dotemacs file

2021-10-20 Thread Greg Minshall via ESS-help
hi, Chuck,

>  Reading at buffer position 432
>  load-with-code-conversion("/home/markleeds/.emacs "/home/markleeds/.emacs" t 
> t)
>  load("~/.emacs" t t)

i think that's just how emacs produces the Backtrace buffer.  (i've
always found that odd.)

cheers, Greg

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] emacs-ess and the dreaded dotemacs file

2021-10-20 Thread Berry, Charles via ESS-help
Hi Mark,

I hope you are well.

As Tyler points out the attachment didn't make it.

However, I do see this bit:

 Reading at buffer position 432
 load-with-code-conversion("/home/markleeds/.emacs "/home/markleeds/.emacs" t t)
 load("~/.emacs" t t)

If the latter two lines appear literally in a file you are trying to load, then 
you have fallen into the trap of using R like syntax where lisp is needed. (I 
do know emacs-lisp and do this myself more than I want to admit.) 

So move the open parens BEFORE the function names, viz.

(load-with-code-conversion "/home/markleeds/.emacs
"/home/markleeds/.emacs" t t )
 (load "~/.emacs" t t)


HTH,
Chuck


> On Oct 19, 2021, at 2:03 AM, Mark Leeds via ESS-help  
> wrote:
> 
> Hi All: Would anyone mind doing me a big favor and fixing any ( even one is
> great )  problems in my current dotemacs file. I was able to get some of it
> to run but when it hits the auto-complete section, I start having all kinds
> of problems. For most of it, ( from the auto-complete section and on ),  I
> just copied the dotemacs file used at the link below ( the www.code.rd.com
> link ) . But things either changed dramatically since that link was created
> or the author is maybe not showing the whole file ?
> 
> I'm lisp illiterate which obviously doesn't help. I use ubuntu but I doubt
> that matters.
> 
> This all sounded like a good idea when I started it  but now its  been
> three days and I'm still not terribly far. Thanks to Rich Heiberger who was
> influential in getting the top part to work before it hits the
> auto-complete section. The dotemacsfile is
> attached. Note that the code in the dotemacsfile with all the semi-colons
> is the code from the link here. I don't see any typos but I could be
> mistaken.  Or
> maybe the link itself has typos ? Thanks so much for help in any way.
> 
> https://www.codetd.com/en/article/8181443
> 
> #===
> # ERROR THAT emacs --debug-init temp.R GIVES BUT I DOUBT THAT'S  THE ONLY
> ONE
> #===
> Debugger entered--Lisp error: (invalid-read-syntax ")")
>  eval-buffer(# nil "/home/markleeds/.emacs" nil t)  ;
> Reading at buffer position 432
>  load-with-code-conversion("/home/markleeds/.emacs"
> "/home/markleeds/.emacs" t t)
>  load("~/.emacs" t t)
>  #[0 " \205\262
> __
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
> 

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [R] small object but huge RData file exported

2021-10-20 Thread Jinsong Zhao

On 2021/10/20 21:05, Duncan Murdoch wrote:

On 20/10/2021 8:57 a.m., Jinsong Zhao wrote:

Hi there,

I have a RData file that is obtained by save.image() with size about
74.0 MB (77,608,222 bytes).

When load into R, I measured the size of each object with object.size():


object.size(combn.rda.m)

105448 bytes

object.size(cross)

102064 bytes

object.size(denitr.1)

25032 bytes

object.size(rda.denitr.1)

600280 bytes

object.size(xh)

7792 bytes

object.size(xh.x)

6064 bytes

object.size(xh.x.1)

24144 bytes

object.size(xh.x.2)

24144 bytes

object.size(xh.x.3)

24144 bytes

object.size(xh.y)

2384 bytes

There are all small objects.

If I delete the largest one "rda.denitr.1", and save.image("xx.RData").
It has the size of 22.6 KB (23,244 bytes). All seem OK.

However, when I save(rda.denitr.1, file = "yy.RData"), then it has the
size of 73.9 MB (77,574,869 bytes).

I don't know why...

Any hint?


As the docs for object.size() say, "Exactly which parts of the memory 
allocation should be attributed to which object is not clear-cut."  In 
particular, if a function or formula has an associated environment, it 
isn't included, but it is sometimes saved in the image.


So I'd suspect rda.denitr.1 contains something that references an 
environment, and it's an environment that would be saved.  (I forget the 
exact rules, but I think that means it's not the global environment and 
it's not a package environment.)


Duncan Murdoch



The rda.denitr.1 is only a list with length 2:
rda.denitr.1[[1]] is a vector with length 10;
rda.denitr.2[[2]] is a list with the length 10. rda.denitr.1[[2]][[1]] 
to rda.denitr.1[[2]][[10]] are small RDA objects generated by rda() from 
vegan package.


If I
> a <- rda.denitr.1[[2]][[1]]
> object.size(a)
59896 bytes
> save(a, file = "abc.RData")
It also has a large size of 73.9 MB (77,536,611 bytes)

Jinsong

__
R-help@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.


Re: [R] small object but huge RData file exported

2021-10-20 Thread Duncan Murdoch

On 20/10/2021 8:57 a.m., Jinsong Zhao wrote:

Hi there,

I have a RData file that is obtained by save.image() with size about
74.0 MB (77,608,222 bytes).

When load into R, I measured the size of each object with object.size():


object.size(combn.rda.m)

105448 bytes

object.size(cross)

102064 bytes

object.size(denitr.1)

25032 bytes

object.size(rda.denitr.1)

600280 bytes

object.size(xh)

7792 bytes

object.size(xh.x)

6064 bytes

object.size(xh.x.1)

24144 bytes

object.size(xh.x.2)

24144 bytes

object.size(xh.x.3)

24144 bytes

object.size(xh.y)

2384 bytes

There are all small objects.

If I delete the largest one "rda.denitr.1", and save.image("xx.RData").
It has the size of 22.6 KB (23,244 bytes). All seem OK.

However, when I save(rda.denitr.1, file = "yy.RData"), then it has the
size of 73.9 MB (77,574,869 bytes).

I don't know why...

Any hint?


As the docs for object.size() say, "Exactly which parts of the memory 
allocation should be attributed to which object is not clear-cut."  In 
particular, if a function or formula has an associated environment, it 
isn't included, but it is sometimes saved in the image.


So I'd suspect rda.denitr.1 contains something that references an 
environment, and it's an environment that would be saved.  (I forget the 
exact rules, but I think that means it's not the global environment and 
it's not a package environment.)


Duncan Murdoch

__
R-help@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.


[R] small object but huge RData file exported

2021-10-20 Thread Jinsong Zhao

Hi there,

I have a RData file that is obtained by save.image() with size about 
74.0 MB (77,608,222 bytes).


When load into R, I measured the size of each object with object.size():


object.size(combn.rda.m)

105448 bytes

object.size(cross)

102064 bytes

object.size(denitr.1)

25032 bytes

object.size(rda.denitr.1)

600280 bytes

object.size(xh)

7792 bytes

object.size(xh.x)

6064 bytes

object.size(xh.x.1)

24144 bytes

object.size(xh.x.2)

24144 bytes

object.size(xh.x.3)

24144 bytes

object.size(xh.y)

2384 bytes

There are all small objects.

If I delete the largest one "rda.denitr.1", and save.image("xx.RData"). 
It has the size of 22.6 KB (23,244 bytes). All seem OK.


However, when I save(rda.denitr.1, file = "yy.RData"), then it has the 
size of 73.9 MB (77,574,869 bytes).


I don't know why...

Any hint?

Best wishes,

Jinsong

__
R-help@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.


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

2021-10-20 Thread Duncan Murdoch
Translations are done by the translation teams, listed here: 
.  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.001)
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.001))
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.001), 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.001), 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@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.



__
R-help@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.


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

2021-10-20 Thread Marc Girondot via R-help

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.001)
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.001))
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.001), 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.001), 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@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.


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

2021-10-20 Thread Enrico Schumann
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.001)
> 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.001))
> 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.001), 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.001), 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'.


-- 
Enrico Schumann
Lucerne, Switzerland
http://enricoschumann.net

__
R-help@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.


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

2021-10-20 Thread Marc Girondot via R-help

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.001)
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.001))

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.001), 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.001), 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

__
R-help@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.