Re: [R] Description of error is untranslated when R_XLEN_T_MAX is exceeded by only 1 element.

2024-05-13 Thread Ivan Krylov via R-help
Dear Ricardo Villalba,

Thank you for spotting this corner case!

В Mon, 13 May 2024 11:37:57 -0300
Ricardo Villalba  пишет:

> I track the messages to be coded here:
> https://github.com/r-devel/r-svn/blob/abe625945c4402cd2bb97b5a64e7469db3e904f0/src/main/altclasses.c#L580
> and here
> https://github.com/r-devel/r-svn/blob/abe625945c4402cd2bb97b5a64e7469db3e904f0/src/main/seq.c#L102

You may have noticed that one of these places lacks the underscore that
R uses as the translation keyword: it's _(string) that looks up the
translation of the string.

Would you like to suggest a patch on r-de...@r-project.org or
https://bugs.r-project.org ?

-- 
Best regards,
Ivan

__
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.


[ESS] ligatures in ESS

2024-05-13 Thread Hüsing , Johannes via ESS-help
Dear all,
I declared some ligatures, which led tot he lines:

'(ess-r-prettify-symbols
   '(("<-" . 8592)
 ("%>%" . 8658)
 ("%<>%" . 8660)
 ("%T>%" . 129107)))

shown in the entry within (custom-set-variables). When opening an *.Rmd file, I 
see no effect of this declaration, the symbols show as entered without being 
replaced by ligatures. When looking at the help page of ess-r-prettify-symbols, 
I read: "This gets appended to 'prettify-symbols-alist', so set it to nil if 
you want to disable R specific prettification."  Upon C-h v 
prettify-symbols-alist, I get that the calue of this list is nil. This makes me 
wonder when my list of ligatures gets appended.

Also, the help page tells me that the original value of the list was

(("<-" 32
  (Br . Bl)
  32
  (Bc . Bc)
  8592)  etc etc)

so the structure of each list element is considerably more complicated than of 
prettify-symbols-alist, which has a standard alist appearance. What do "Bc", 
"Bl", Br" signify? Do they have to do with center, left and right?

Best wishes

Johannes



Dr. Johannes H�sing
Epidemiologie

Landeskrebsregister NRW gGmbH
Gesundheitscampus 10
44801 Bochum



T 0234 54509-216
F 0234 54509-499
johannes.hues...@krebsregister.nrw.de
www.landeskrebsregister.nrw

Das Landeskrebsregister NRW online
FACEBOOK: 
www.facebook.com/LKR.NordrheinWestfalen
INSTAGRAM: https://www.instagram.com/landeskrebsregister_nrw
NEWSLETTER: https://www.landeskrebsregister.nrw/aktuelles/newsletter


Gesch�ftsf�hrer
Dr. Andres Sch�tzend�bel
Vorsitzender der Gesellschafterversammlung
Staatssekret�r Matthias Heidmeier
Sitz der Gesellschaft
Bochum
Registergericht
Amtsgericht Bochum
HRB 17715

HINWEIS: Diese Nachricht ist nur f�r den Adressaten bestimmt. Es ist nicht 
erlaubt, diese Nachricht zu kopieren oder Dritten zug�nglich zu machen. Sollten 
Sie irrt�mlich diese Nachricht erhalten haben, bitte ich um Ihre Mitteilung per 
E-Mail oder unter der oben angegebenen Telefonnummer.

[[alternative HTML version deleted]]

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


Re: [R] test2r.mengz1(X)

2024-05-13 Thread Bert Gunter
... but maybe cocor() in the cocor package will do do what you want.

-- Bert


On Mon, May 13, 2024 at 1:57 PM Duncan Murdoch  wrote:
>
> Google says that function is in the bcdstats package, which isn't on
> CRAN.  It appears to be a private package for a course, kept on Github.
>
> Duncan Murdoch
>
> On 2024-05-13 12:24 p.m., Alligand, Justine wrote:
> > Dear participants and subscribers of the R-help mailing list,
> >
> > I would like to compare two dependent correlations with one overlapping 
> > variable. The Meng Z1 method seemed suitable for this purpose. I found out 
> > that the "cocor" package is required for this instrument. I checked several 
> > times whether the package was installed and activated and both were the 
> > case. I have also tried the "psych" package, but I get the same error in 
> > both cases:
> >> library(cocor)
> >> library(psych)
> >> test2r.mengz1(corAVOBMI, corAVVBMI, corAVOAVV, 39)
> > Error in test2r.mengz1(corAVOBMI, corAVVBMI, corAVOAVV, 39) :
> >could not find function "test2r.mengz1" (Translated from German)
> > Do I not have the right package? Or can you recognize another error?
> > Many thanks in advance.
> >
> > Yours faithfully
> > Justine Alligand
> >
> >
> >   [[alternative HTML version deleted]]
> >
> > __
> > 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] test2r.mengz1(X)

2024-05-13 Thread Duncan Murdoch
Google says that function is in the bcdstats package, which isn't on 
CRAN.  It appears to be a private package for a course, kept on Github.


Duncan Murdoch

On 2024-05-13 12:24 p.m., Alligand, Justine wrote:

Dear participants and subscribers of the R-help mailing list,

I would like to compare two dependent correlations with one overlapping variable. The Meng Z1 
method seemed suitable for this purpose. I found out that the "cocor" package is required 
for this instrument. I checked several times whether the package was installed and activated and 
both were the case. I have also tried the "psych" package, but I get the same error in 
both cases:

library(cocor)
library(psych)
test2r.mengz1(corAVOBMI, corAVVBMI, corAVOAVV, 39)

Error in test2r.mengz1(corAVOBMI, corAVVBMI, corAVOAVV, 39) :
   could not find function "test2r.mengz1" (Translated from German)
Do I not have the right package? Or can you recognize another error?
Many thanks in advance.

Yours faithfully
Justine Alligand


[[alternative HTML version deleted]]

__
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] test2r.mengz1(X)

2024-05-13 Thread Alligand, Justine
Dear participants and subscribers of the R-help mailing list,

I would like to compare two dependent correlations with one overlapping 
variable. The Meng Z1 method seemed suitable for this purpose. I found out that 
the "cocor" package is required for this instrument. I checked several times 
whether the package was installed and activated and both were the case. I have 
also tried the "psych" package, but I get the same error in both cases:
> library(cocor)
> library(psych)
> test2r.mengz1(corAVOBMI, corAVVBMI, corAVOAVV, 39)
Error in test2r.mengz1(corAVOBMI, corAVVBMI, corAVOAVV, 39) :
  could not find function "test2r.mengz1" (Translated from German)
Do I not have the right package? Or can you recognize another error?
Many thanks in advance.

Yours faithfully
Justine Alligand


[[alternative HTML version deleted]]

__
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] [EXTERNAL] Re: duplicated() on zero-column data frames returns empty

2024-05-13 Thread Jorgen Harmse via R-help
Good luck! It looks like a significant effort for someone not already on the 
team.

Regards,
Jorgen Harmse.

From: Mark Webster 
Date: Monday, May 13, 2024 at 04:07
To: Jorgen Harmse , Ivan Krylov 
Cc: r-help@r-project.org 
Subject: [EXTERNAL] Re: duplicated() on zero-column data frames returns empty
> If you would like to try your hand at developing a patch and make a
> case for it at R-devel or the Bugzilla, the resources at
>  can be helpful.

I am attempting to get admitted onto the Bugzilla at the moment for the data 
frame cases, fingers crossed!

Best Regards,
Mark Webster

[[alternative HTML version deleted]]

__
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] Description of error is untranslated when R_XLEN_T_MAX is exceeded by only 1 element.

2024-05-13 Thread Ricardo Villalba
Typo: *2^48  should be 2^52

El lun, 13 may 2024 a las 11:37, Ricardo Villalba ()
escribió:

> Hello everyone
> When asking to create sequence longer than 2^48 (which is forbidden) the
> same error message appears translated and untranslated depending on whether
> R_XLEN_T_MAX is reached or exceeded
> while not an error o problem beyond that of the untranslated text, i find
> this weird. ¿could it be fixed in any manner?
>
> R_XLEN_T_MAX <- 4503599627370496
>
> > length(1:(R_XLEN_T_MAX - 1))
> [1] 4.5036e+15
> > length(1:(R_XLEN_T_MAX + 0))
> Error: result would be too long a vector
> > length(1:(R_XLEN_T_MAX + 1))
> Error en 1:(R_XLEN_T_MAX + 1): el resultado seria un vector muy largo
>
> The last is the same as the second, but translated into spanish.
>
> I track the messages to be coded here:
> https://github.com/r-devel/r-svn/blob/abe625945c4402cd2bb97b5a64e7469db3e904f0/src/main/altclasses.c#L580
>  and
> here
> https://github.com/r-devel/r-svn/blob/abe625945c4402cd2bb97b5a64e7469db3e904f0/src/main/seq.c#L102
>
> --
> ®DV!
>


-- 
®DV!

[[alternative HTML version deleted]]

__
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] Description of error is untranslated when R_XLEN_T_MAX is exceeded by only 1 element.

2024-05-13 Thread Ricardo Villalba
Hello everyone
When asking to create sequence longer than 2^48 (which is forbidden) the
same error message appears translated and untranslated depending on whether
R_XLEN_T_MAX is reached or exceeded
while not an error o problem beyond that of the untranslated text, i find
this weird. ¿could it be fixed in any manner?

R_XLEN_T_MAX <- 4503599627370496

> length(1:(R_XLEN_T_MAX - 1))
[1] 4.5036e+15
> length(1:(R_XLEN_T_MAX + 0))
Error: result would be too long a vector
> length(1:(R_XLEN_T_MAX + 1))
Error en 1:(R_XLEN_T_MAX + 1): el resultado seria un vector muy largo

The last is the same as the second, but translated into spanish.

I track the messages to be coded here:
https://github.com/r-devel/r-svn/blob/abe625945c4402cd2bb97b5a64e7469db3e904f0/src/main/altclasses.c#L580
and
here
https://github.com/r-devel/r-svn/blob/abe625945c4402cd2bb97b5a64e7469db3e904f0/src/main/seq.c#L102

--
®DV!

[[alternative HTML version deleted]]

__
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] Is there some way to customize colours for the View output?

2024-05-13 Thread Ivan Krylov via R-help
В Mon, 13 May 2024 06:08:22 -0400
Duncan Murdoch  пишет:

> The row and column names don't appear to be controllable from that
> menu, they seem (on my machine) to be displayed in the same colour as
> the background of a dialog box, i.e. some kind of gray.  I don't
> think R tries to control that colour, but perhaps some Windows
> setting would change it.

This is entirely correct: the dialog uses the colour returned by
dialog_bg(), which is GetSysColor(COLOR_BTNFACE).

I think it could be a reasonable feature request to use an adjustable
colour for the row and column headers.

-- 
Best regards,
Ivan

__
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] New Emacs? New ESS? New Emacs Modified distributions!

2024-05-13 Thread Hüsing , Johannes via ESS-help
Dear Vincent,
I installed the package en passent while working, and was able to continue 
working without any problem, re-definition of paths or what have you.

Many thanks for catering for our needs!

Johannes



Dr. Johannes Hüsing
Epidemiologie


Landeskrebsregister NRW gGmbH
Gesundheitscampus 10
44801 Bochum
T 0234 54509-216
F 0234 54509-499
johannes.hues...@krebsregister.nrw.de
www.landeskrebsregister.nrw.de


Newsletter LKR NRW jetzt anmelden unter Newsletter 

Geschäftsführer
Dr. Andres Schützendübel
Vorsitzender der Gesellschafterversammlung
Staatssekretär Dr. Edmund Heller
Sitz der Gesellschaft
Bochum
Registergericht
Amtsgericht Bochum
HRB 17715

HINWEIS: Diese Nachricht ist nur für den Adressaten bestimmt. Es ist nicht 
erlaubt, diese Nachricht zu kopieren oder Dritten zugänglich zu machen. Sollten 
Sie irrtümlich diese Nachricht erhalten haben, bitte ich um Ihre Mitteilung per 
E-Mail oder unter der oben angegebenen Telefonnummer.


-Ursprüngliche Nachricht-
Von: ESS-help  Im Auftrag von Vincent Goulet 
via ESS-help
Gesendet: Sonntag, 12. Mai 2024 16:30
An: ESS-help 
Betreff: [ESS] New Emacs? New ESS? New Emacs Modified distributions!

Hi folks,

With the recent releases of GNU Emacs 29.3 and ESS 24.01.1 (yay!), I was due 
for updates of my Emacs Modified for (macOS|Windows) distributions. With the 
Winter semester ending, I finally had some time to devote to the project. I'm 
pleased to announce that versions 29.3-modified-1 are now available:

https://emacs-modified.gitlab.io

Excerpts from the release notes:

## New feature

- The distribution now includes polymode (version 0.2.2) and the
  polymodes poly-R, poly-noweb, poly-markdown. Polymodes are
  associated with .Rnw and .Rmd files (only).

## Updates

- Emacs 29.3 released 24 March 2024.
- ESS 24.01.1.
- AUCTeX 13.3.
- Libre Office English dictionary 2024.05.01.
- Libre Office Spanish dictionary 2.8.

## Changes

- With the new official release of ESS, the "Legacy Emacs and ESS"
  editions are no longer developed.

Best,

v.

Vincent Goulet
Professeur titulaire
École d'actuariat, Université Laval
__
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] Is there some way to customize colours for the View output?

2024-05-13 Thread Duncan Murdoch
I just tried it on an old Windows computer.  I don't see dataeditfg in 
the preferences menu; I think it is the internal variable name used for 
"dataedittext".


The row and column names don't appear to be controllable from that menu, 
they seem (on my machine) to be displayed in the same colour as the 
background of a dialog box, i.e. some kind of gray.  I don't think R 
tries to control that colour, but perhaps some Windows setting would 
change it.


Duncan Murdoch

On 2024-05-13 4:50 a.m., Iago Giné Vázquez wrote:

Hi all,

I've just could test your suggestions on using dataedit... entries now, 
and indeed they work... partially. See, please, the next screenshot:

https://ibb.co/Dkn2pVs 


dataedituser modifies the red borders
dataedittext the yellow text
dataeditfg... I do not know, specified to green the output of 
View(mtcars) does not change from that of the screenshot
dataeditbg is the (almost) black background, but in the column and 
row names.


I tried the modifying the different colours through the GUI preferences, 
and the background colour for column and row names did not change. May 
this be a bug?



Thank you for your help.

Best regards,

Iago

*De:* Rolf Turner 
*Enviat el:* dimarts, 7 de maig de 2024 23:58
*Per a:* Duncan Murdoch 
*A/c:* Iago Giné Vázquez ; r-help@r-project.org 
; Achim Zeileis 

*Tema:* Re: [R] Is there some way to customize colours for the View output?

On Tue, 7 May 2024 06:34:50 -0400
Duncan Murdoch  wrote:


On 07/05/2024 6:31 a.m., Iago Giné Vázquez wrote:
> Thanks Duncan.
> 
> I am currently on Windows. Is there any solution for it?


Switch to Linux or MacOS?



Fortune nomination!

cheers,

Rolf Turner

--
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats. Dep't. (secretaries) phone:
  +64-9-373-7599 ext. 89622
Home phone: +64-9-480-4619



__
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] duplicated() on zero-column data frames returns empty

2024-05-13 Thread Mark Webster via R-help
 > If you would like to try your hand at developing a patch and make a
> case for it at R-devel or the Bugzilla, the resources at
>  can be helpful.
I am attempting to get admitted onto the Bugzilla at the moment for the data 
frame cases, fingers crossed!
Best Regards,Mark Webster  
[[alternative HTML version deleted]]

__
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] Is there some way to customize colours for the View output?

2024-05-13 Thread Iago Giné Vázquez
Hi all,

I've just could test your suggestions on using dataedit... entries now, and 
indeed they work... partially. See, please, the next screenshot:
https://ibb.co/Dkn2pVs


dataedituser modifies the red borders
dataedittext the yellow text
dataeditfg... I do not know, specified to green the output of View(mtcars) does 
not change from that of the screenshot
dataeditbg is the (almost) black background, but in the column and row 
names.

I tried the modifying the different colours through the GUI preferences, and 
the background colour for column and row names did not change. May this be a 
bug?


Thank you for your help.

Best regards,

Iago

De: Rolf Turner 
Enviat el: dimarts, 7 de maig de 2024 23:58
Per a: Duncan Murdoch 
A/c: Iago Gin� V�zquez ; r-help@r-project.org 
; Achim Zeileis 
Tema: Re: [R] Is there some way to customize colours for the View output?


On Tue, 7 May 2024 06:34:50 -0400
Duncan Murdoch  wrote:

> On 07/05/2024 6:31 a.m., Iago Gin� V�zquez wrote:
> > Thanks Duncan.
> >
> > I am currently on Windows. Is there any solution for it?
>
> Switch to Linux or MacOS?


Fortune nomination!

cheers,

Rolf Turner

--
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats. Dep't. (secretaries) phone:
 +64-9-373-7599 ext. 89622
Home phone: +64-9-480-4619


[[alternative HTML version deleted]]

__
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.