Re: [R] aggregate formula - differing results

2023-09-04 Thread Iago Giné Vázquez
It seems that the issue are the missings. If in #1 you use the dataset na.omit(my_data) instead of my_data, you get the same output that in #2 and in #4, where all observations with missing data are removed since you are including all the variables. The second dataset has no issue since it

[R] Why Rprofile.site is not built with manual installation of R devel in linux?

2023-11-09 Thread Iago Giné Vázquez
Hi all, I downloaded R-devel as explicited in https://developer.r-project.org/SVNtips.html Then, I tried to install it through instructions in https://cran.r-project.org/doc/manuals/r-devel/R-admin.html#Installation (taking into account also

[R] Is it possible to set a default working directory for all R consoles?

2022-06-17 Thread IAGO GINÉ VÁZQUEZ
Hi all, Is there some way to set a default working directory each time R.exe is opened? I ask this because Always that I open R 4.2.o in Windows 10 I get the next warning messages Warning message: In normalizePath(path.expand(path), winslash, mustWork) :

[R] Rare behaviour for nlme::reStruct example and question about ?lmeObject

2022-11-14 Thread IAGO GINÉ VÁZQUEZ
Dear developers, When I run the example code in the help of reStruct, I get > library(nlme) > rs1 <- reStruct(list(Dog = ~day, Side = ~1), data = Pixel) > rs1 Uninitialized random effects structure > str(rs1) List of 2 $ Side:Error in pdMatrix.pdSymm(x) : cannot extract matrix from an

Re: [R] Importing data with value labels into R

2022-11-14 Thread IAGO GINÉ VÁZQUEZ
Hello Maryam, The haven function for reading Stata files is read_dta (not read.dta!!!). May this be your issue? Iago De: R-help de part de Maryam Iraniparast Enviat el: dilluns, 14 de novembre de 2022 19:07 Per a: r-help@r-project.org Tema: [R] Importing

Re: [R] Matrix scalar operation that saves memory?

2023-04-12 Thread Iago Giné Vázquez
You may take a look at the bigmemory package or other which deal with large memory data in https://cran.r-project.org/web/views/HighPerformanceComputing.html#large-memory-and-out-of-memory-data Some extra explanation is in https://stackoverflow.com/a/11127229/997979 Iago

[R] Help/documentation on Rgui

2023-07-03 Thread Iago Giné Vázquez
Hi all, Where can I find a detailed document(ation) on the use of Rgui.exe. The most detailed I found is https://cran.r-project.org/doc/manuals/r-release/R-ints.html#GUI-consoles, where there is almost nothing. Actually I want to know how to open Rgui.exe (let's say, from a terminal [mainly

Re: [R] Help/documentation on Rgui

2023-07-03 Thread Iago Giné Vázquez
Thank you Petr, great! Best, Iago De: PIKAL Petr Enviat: Dilluns, 3-juliol 3e000 2023 9:42 Per a: Iago Gin� V�zquez; r-help@r-project.org Assumpte: RE: Help/documentation on Rgui Hi I am not sure about opening Rgui in terminal but for customising Rgui

[R] Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line

2024-02-09 Thread Iago Giné Vázquez
Hi all, I cite from README.Rterm ^D, DEL : Delete the character under the cursor. That is the general behaviour, but when there is no character (neither under the cursor nor at its left), pressing the Delete key suggests closing the R terminal. Is there any (configurable) way to avoid

Re: [R] Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line

2024-02-09 Thread Iago Giné Vázquez
Yes, indeed, I am talking about Rterm in Windows. Iago De: Duncan Murdoch Enviat el: divendres, 9 de febrer de 2024 13:50 Per a: Iago Giné Vázquez Tema: Re: [R] Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line On 09

Re: [R] Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line

2024-02-12 Thread Iago Giné Vázquez
Thanks to both, Duncan and Thomas. Best, Iago De: Tomas Kalibera Enviat el: dilluns, 12 de febrer de 2024 11:18 Per a: Iago Giné Vázquez ; CALUM POLWART ; Duncan Murdoch A/c: r-help@r-project.org Tema: Re: [R] Avoiding Delete key function as 'Quit R' in Rterm

Re: [R] Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line

2024-02-09 Thread Iago Giné Vázquez
Duncan, do you think it's worth to comment this in R-devel list? Iago De: CALUM POLWART Enviat el: divendres, 9 de febrer de 2024 18:28 Per a: Duncan Murdoch A/c: Iago Giné Vázquez ; r-help@r-project.org Tema: Re: [R] Avoiding Delete key function as 'Quit R

Re: [R] gsub issue with consecutive pattern finds

2024-03-01 Thread Iago Giné Vázquez
perl = TRUE, ignore.case = > TRUE) > > ## or > > gsub("(?i)([aeiou])(?=[aeiou])", "\\1_", "aerioue", perl = TRUE) > ``` > > I hope this helps! > > > On Fri, Mar 1, 2024, 06:37 Iago Giné Vázquez wrote: > >> Hi all,

[R] gsub issue with consecutive pattern finds

2024-03-01 Thread Iago Giné Vázquez
Hi all, I tested next command: gsub("([aeiouAEIOU])([aeiouAEIOU])", "\\1_\\2", "aerioue") with the following output: [1] "a_eri_ou_e" So, there are two consecutive vowels where an underscore is not added. May it be a bug? Is it expected (bug or not)? Is there any chance to get what I want

Re: [R] Debugging functions defined (locally) inside another functions

2024-04-12 Thread Iago Giné Vázquez
Thank you Ivan, your example solves my issue this time through debug(environment(Adder$add)$add) Just for the future, you say Moreover, `g` doesn't exist at all until f() is evaluated and reaches this point. If `f` was a function, it would be possible to trace() it, inserting a

[R] Debugging functions defined (locally) inside another functions

2024-04-12 Thread Iago Giné Vázquez
Hi all, I am trying to debug an error of a function g defined and used inside another function f of a package. So I have f <- function(whatever){ ... g <- function(whatever2){ ... } ... } If I wanted to debug some thing directly inside f I would do debug(f). But this does not

Re: [R] Debugging functions defined (locally) inside another functions

2024-04-12 Thread Iago Giné Vázquez
To be precise, in the case I am looking this time f is not a function, but f <- ggplot2::ggproto(...) So debug(f) produces Error in debug(f) : argument must be a function Iago De: R-help de part de Iago Gin� V�zquez Enviat el: divendres, 12 d�abril de 2024

Re: [R] Debugging functions defined (locally) inside another functions

2024-04-12 Thread Iago Giné Vázquez
Thanks a lot both Duncan and Ivan, I will keep that example in mind, Duncan, great! Best regards, Iago De: Duncan Murdoch Enviat el: divendres, 12 d�abril de 2024 15:36 Per a: Iago Gin� V�zquez ; r-help@r-project.org Tema: Re: [R] Debugging functions defined

[R] Is there some way to customize colours for the View output?

2024-05-07 Thread Iago Giné Vázquez
Hi all, As the email subject tells, I write to ask if there is the chance to customize the colours (and in particular the background) of the `View` output window. In the View help, it is told that: On Windows, the initial size of the data viewer window is taken from the default

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

2024-05-07 Thread Iago Giné Vázquez
Thanks Duncan. I am currently on Windows. Is there any solution for it? Best regards, Iago De: Duncan Murdoch Enviat el: dimarts, 7 de maig de 2024 12:24 Per a: Iago Gin� V�zquez ; r-help@r-project.org Tema: Re: [R] Is there some way to customize colours for

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

[ESS] Where does ESS saves ESSR environment information

2024-03-20 Thread Iago Giné Vázquez via ESS-help
Hi all, I have included a line such as the following in my .emacs file: (add-hook 'ess-r-post-run-hook (lambda () (ess-load-file "~/startR.r"))) I have restarted Emacs, tried to start R and get an error due to that R did not find the file. I realized that I put ~ thinking in home path for