Re: [R] Double buffering plots on Windows

2024-03-23 Thread Bert Gunter
A search on "make animated plots in R" brought up many hits and the gganimate package (and maybe others, as I didn't scroll through). Bert On Fri, Mar 22, 2024, 18:45 Bickis, Mikelis wrote: > Hello: > > I want to present a sequence of plots as an animation. As a toy example > consider the

Re: [R] Problem with new version of R: Mutated vocals

2024-03-22 Thread Ivan Krylov via R-help
В Fri, 22 Mar 2024 16:11:14 + MACHO Siegfried via R-help пишет: > If I type the command: > Dir <- "C/Users/macho/Documents/_LVn/Experimentelle _bungen" > in the R console there is no problem. However, if I put the same > command into a source file (e.g. Test.r) and call this file from R >

[R] Problem with new version of R: Mutated vocals

2024-03-22 Thread MACHO Siegfried via R-help
Dear ladies and gentlemen, I have recently installed the latest version of R (4.3.3) for windows. Now I have the following problems with mutated vowels like �, �, etc. Here is an example: If I type the command: Dir <- "C/Users/macho/Documents/_LVn/Experimentelle �bungen" in the R console there

Re: [R] Error message

2024-03-22 Thread Ivan Krylov via R-help
В Fri, 22 Mar 2024 14:52:05 -0500 Val пишет: > : 8d5a 35f8 1ac5 cc14 a04e be5c 572f a3ad .Z5..N.\W/.. > 0010: 6210 7024 9b58 93c7 34d0 acb7 7a82 3f99 b.p$.X..4...z.?. Thank you! This doesn't look like any structured data to me. In particular, it doesn't look like something

Re: [R] Error message

2024-03-22 Thread Val
Here is the first few bytes, xxd -l 128 X1.RData : 8d5a 35f8 1ac5 cc14 a04e be5c 572f a3ad .Z5..N.\W/.. 0010: 6210 7024 9b58 93c7 34d0 acb7 7a82 3f99 b.p$.X..4...z.?. 0020: 66ce 0ebb 2057 ec36 55b4 0ece a036 695a f... W.6U6iZ 0030: 258b 3493 b661 f620 f7fe ada7 158a

Re: [R] Error message

2024-03-22 Thread Ivan Krylov via R-help
В Fri, 22 Mar 2024 14:31:17 -0500 Val пишет: > How do I get the first few bytes? What does file.info('X1.RData') say? Do you get any output if you run print(readBin('X1.RData', raw(), 128))? If this is happening on a Linux or macOS machine, the operating system command xxd -l 128 X1.RData

Re: [R] Error message

2024-03-22 Thread Val
Yes, X1.RData is large(more than 40M rows) . How do I get the first few bytes? On Fri, Mar 22, 2024 at 2:20 PM Ivan Krylov wrote: > > В Fri, 22 Mar 2024 14:02:09 -0500 > Val пишет: > > > X2.R > > load("X1.RData") > > > > I am getting this error message: > > Error in load("X1.RData", : > >

Re: [R] Error message

2024-03-22 Thread Ivan Krylov via R-help
В Fri, 22 Mar 2024 14:02:09 -0500 Val пишет: > X2.R > load("X1.RData") > > I am getting this error message: > Error in load("X1.RData", : > bad restore file magic number (file may be corrupted) .. no data > loaded. This error happens very early when R tries to load the file, right at the

[R] Error message

2024-03-22 Thread Val
Hi all, I am creating an X1.RData file using the R 4.2.2 library. x1.R save(datafilename, file="X1.RData") When I am trying to load this file using another script X2.R load("X1.RData") I am getting this error message: Error in load("X1.RData", : bad restore file magic number (file

[R] Double buffering plots on Windows

2024-03-22 Thread Bickis, Mikelis
Hello: I want to present a sequence of plots as an animation. As a toy example consider the code function(n){for (i in 1:n){ plot(1:100,sin(i*(1:100)),type="l") title(paste("n=",i)) segments(0,0,100,0,col=2) }} This sort-of works on a MacOS platform, but the rendering of the plots is a bit

Re: [ESS] Displaying R plots within an Emacs buffer

2024-03-22 Thread Sparapani, Rodney via ESS-help
Oh, yeah, sorry that was stupid. So now I have execute permission. But, this is what latest.svg shows now… Status: 404 Reason: Not Found -- Rodney Sparapani, Associate Professor of Biostatistics, He/Him/His Vice President, Wisconsin Chapter of the American Statistical Association Institute for

Re: [ESS] Displaying R plots within an Emacs buffer

2024-03-22 Thread Stephen J. Eglen via ESS-help
Hi Stephen: With emacs v29.2, I keep getting this error and I can.t figure out why. apply: Searching for program: Permission denied, ./check_outputs.pl I have perl and curl installed. So this what I see. hi Rodney, did you do: chmod +x ./check_outputs.pl and that the perl script is in

[ESS] Displaying R plots within an Emacs buffer

2024-03-22 Thread Sparapani, Rodney via ESS-help
Hi Stephen: With emacs v29.2, I keep getting this error and I can�t figure out why� apply: Searching for program: Permission denied, ./check_outputs.pl I have perl and curl installed. So this what I see� > options(width=80, length=9) > setwd('/home/rsparapa') > require(httpgd) Loading

Re: [R] geom_edge & color

2024-03-22 Thread Kimmo Elo
Hi, this seems to work (assuming that your problem was the setting of colours...): --- snip --- network %>% ggraph(., layout = "auto") + # This produces an error... # geom_edge_arc(curvature=0.3, aes(width=(E(network)$weight/10), color=c("darkblue",

Re: [R] geom_edge & color

2024-03-22 Thread SIBYLLE STÖCKLI via R-help
Dear community Find enclosed the full working example. Many thanks Sibylle Test_cat.csv Names Subcategory_type sources.cyto source Factor A.A material "A" A 1 B.B material "B" B 1 C.C regulation "C" C 1 D.D regulation "D" D 1 E.E habitat "E" E 1

Re: [ESS] Displaying R plots within an Emacs buffer

2024-03-21 Thread Tyler Smith via ESS-help
That looks cool! I don't understand the code, but seeing it only took 20 lines, maybe it's something I could figure out. Great start! - tyler -- plantarum.ca On Thu, Mar 21, 2024, at 5:30 PM, Stephen J. Eglen via ESS-help wrote: > This is an itch I've had for ESS for probably at least 10 >

[ESS] Displaying R plots within an Emacs buffer

2024-03-21 Thread Stephen J. Eglen via ESS-help
This is an itch I've had for ESS for probably at least 10 years... how to get R plots displayed dynamically in an Emacs buffer? See code [1] and demo [2] for a proof of concept. Feedback (and any expertise with websockets) welcome! Best wishes, Stephen [1]

Re: [R] Building Packages.

2024-03-21 Thread Ivan Krylov via R-help
В Thu, 21 Mar 2024 18:45:35 + Jorgen Harmse via R-help пишет: > The problem may have been that this package is so important to me > that I put it in .Rprofile. The package was not installed for the new > version of R, so every R session started with an annoying error > message. Presumably a

Re: [R] Building Packages.

2024-03-21 Thread Jorgen Harmse via R-help
> Turns out that RStudio replaces the install.packages object in the utils > package. > Duncan Murdoch So RStudio unlocks the bindings and alters the exported environment? That seems like another reason to stick to the terminal interface. >> Thank you. tools:::.install_packages works. > I'm

Re: [R] [External] Re: Building Packages. (fwd)

2024-03-21 Thread avi.e.gross
Thank you Duncan, you explained quite a bit. I am unclear how this change causes the problem the OP mentioned. It is an example of people using a clever trick to get what they think they want that could be avoided if the original program provided a hook. Of course the hook could be used more

Re: [R] Building Packages.

2024-03-21 Thread Ben Bolker
I think this might be a good conversation for someone to have with the Posit folks * is there a more transparent way to do what they want? * either, long-term, by having utils::install_packages() add a 'hook' feature as mentioned by someone * using a similar method to

Re: [R] Building Packages.

2024-03-21 Thread Duncan Murdoch
I posted a description of their changes this morning. Duncan Murdoch On 21/03/2024 11:37 a.m., avi.e.gr...@gmail.com wrote: With all this discussion, I shudder to ask this. I may have missed the answers but the discussion seems to have been about identifying and solving the problem rapidly

Re: [R] Building Packages.

2024-03-21 Thread avi.e.gross
With all this discussion, I shudder to ask this. I may have missed the answers but the discussion seems to have been about identifying and solving the problem rapidly rather than what maybe is best going forward if all parties agree. What was the motivation for what RSTUDIO did for their version

Re: [R] Building Packages.

2024-03-21 Thread Ben Bolker
Is your Fedora machine using the bspm package with bspm::enable() in the .Rprofile (to install binary packages from the r2u repository)? bspm adds a hook by using trace() on install.packages, which makes it look like this. My guess is that if you start with --vanilla *or* run

Re: [R] [External] Re: Building Packages. (fwd)

2024-03-21 Thread Duncan Murdoch
If you are wondering why RStudio did this, you can see their substitute function using (parent.env(environment(install.packages)))$hook They appear to do these things: - Allow package installation to be disabled. - Check if a package to be installed is already loaded, so that RStudio

Re: [R] [External] Re: Building Packages. (fwd)

2024-03-21 Thread luke-tierney--- via R-help
[forgot to copy to R-help so re-sending] -- Forwarded message -- Date: Thu, 21 Mar 2024 11:41:52 + From: luke-tier...@uiowa.edu To: Duncan Murdoch Subject: Re: [External] Re: [R] Building Packages. At least on my installed version (which tells me it is out of date) they

Re: [R] Building Packages.

2024-03-21 Thread Duncan Murdoch
Yes, you're right. The version found in the search list entry for "package:utils" is the RStudio one; the ones found with two or three colons are the original. Duncan Murdoch On 21/03/2024 5:48 a.m., peter dalgaard wrote: Um, what's with the triple colon? At least on my install, double

Re: [R] geom_edge & color

2024-03-21 Thread Kimmo Elo
Dear Sibylle, your example is not working! E.g. no data for "aes_collapsed". Best, Kimmo ke, 2024-03-20 kello 19:28 +0100, SIBYLLE STÖCKLI via R-help kirjoitti: > Dear community > > I am using ggraph to plot a network analysis. See part 2 in the working > example. > Besides different colors

Re: [R] Building Packages.

2024-03-21 Thread peter dalgaard
Um, what's with the triple colon? At least on my install, double seems to suffice: > identical(utils:::install.packages, utils::install.packages) [1] TRUE > install.packages function (...) .rs.callAs(name, hook, original, ...) -pd > On 21 Mar 2024, at 09:58 , Duncan Murdoch wrote: > > The

Re: [R] Building Packages.

2024-03-21 Thread Duncan Murdoch
The good news for Jorgen (who may not be reading this thread any more) is that one can still be sure of getting the original install.packages() by using utils:::install.packages( ... ) with *three* colons, to get the internal (namespace) version of the function. Duncan Murdoch On

Re: [R] Building Packages.

2024-03-21 Thread Martin Maechler
> Ben Bolker > on Wed, 20 Mar 2024 13:25:33 -0400 writes: >Hmm, looks platform-specific. Under Linux both RStudio > and external R console return > a0b52513622c41c11e3ef57c7a485767 > for digest::digest(install.packages) Well, platform-specific maybe, notably

Re: [R] Building Packages.

2024-03-21 Thread Martin Maechler
> "Duncan Murdoch on Wed, 20 Mar 2024 13:20:12 -0400 writes: > On 20/03/2024 1:07 p.m., Duncan Murdoch wrote: >> On 20/03/2024 12:37 p.m., Ben Bolker wrote: >>> Ivan, can you give more detail on this? I've heard this >>> issue mentioned, but when I open RStudio and run

Re: [R] Building Packages.

2024-03-20 Thread Ivan Krylov via R-help
В Wed, 20 Mar 2024 19:26:53 + Jorgen Harmse пишет: > Thank you. tools:::.install_packages works. I'm glad it works, but it shouldn't be necessary to use (and is not part of the API: not documented to keep working this way). Since you're already using devtools, perhaps devtools::install

Re: [R] Building Packages.

2024-03-20 Thread Jorgen Harmse via R-help
Thank you. tools:::.install_packages works. It happens that one of the functions in my package is a utility to build packages. I guess I should change the install step. Regards, Jorgen. #' Build package from source #' #' \code{roxygen2} & \code{devtools} have several steps to build a

Re: [R] Building Packages.

2024-03-20 Thread Ivan Krylov via R-help
В Wed, 20 Mar 2024 17:00:34 + Jorgen Harmse пишет: > Thank you, but I think I was already using utils. > > Regards, > Jorgen. > > > > environment(install.packages) > > > > >

Re: [R] Building Packages.

2024-03-20 Thread Jorgen Harmse via R-help
I was thinking of making it Open Source, but I haven’t yet. It’s mostly a collection of small utility functions (more oxygen comments than actual code). I built the package on my Windows machine a few months ago, but my Mac first wouldn’t install roygen2 & devtools and now (with the latest

[R] geom_edge & color

2024-03-20 Thread SIBYLLE STÖCKLI via R-help
Dear community I am using ggraph to plot a network analysis. See part 2 in the working example. Besides different colors for different groups of nodes: --> geom_node_point(aes(size = V(network)$hub_score*200, color= as.factor(V(network)$community))) I additionally want to consider different

Re: [R] Building Packages.

2024-03-20 Thread Ben Bolker
Hmm, looks platform-specific. Under Linux both RStudio and external R console return a0b52513622c41c11e3ef57c7a485767 for digest::digest(install.packages) On 2024-03-20 1:20 p.m., Duncan Murdoch wrote: On 20/03/2024 1:07 p.m., Duncan Murdoch wrote: On 20/03/2024 12:37 p.m., Ben Bolker

Re: [R] Building Packages.

2024-03-20 Thread Ivan Krylov via R-help
В Wed, 20 Mar 2024 12:37:39 -0400 Ben Bolker пишет: > Ivan, can you give more detail on this? I've heard this issue > mentioned, but when I open RStudio and run find("install.packages") > it returns "utils::install.packages", and running dump() from within > RStudio console and from an

Re: [R] Building Packages.

2024-03-20 Thread Duncan Murdoch
On 20/03/2024 1:07 p.m., Duncan Murdoch wrote: On 20/03/2024 12:37 p.m., Ben Bolker wrote: Ivan, can you give more detail on this? I've heard this issue mentioned, but when I open RStudio and run find("install.packages") it returns "utils::install.packages", and running dump() from within

Re: [R] Building Packages.

2024-03-20 Thread Duncan Murdoch
Is the source for your package online somewhere? Duncan Murdoch On 20/03/2024 1:00 p.m., Jorgen Harmse via R-help wrote: Thank you, but I think I was already using utils. Regards, Jorgen. environment(install.packages)

Re: [R] Building Packages.

2024-03-20 Thread Duncan Murdoch
On 20/03/2024 12:37 p.m., Ben Bolker wrote: Ivan, can you give more detail on this? I've heard this issue mentioned, but when I open RStudio and run find("install.packages") it returns "utils::install.packages", and running dump() from within RStudio console and from an external "R

Re: [R] Building Packages.

2024-03-20 Thread Jorgen Harmse via R-help
Thank you, but I think I was already using utils. Regards, Jorgen. > environment(install.packages) > utils::install.packages('/Users/jharmse/Library/CloudStorage/OneDrive-RokuInc/jhBase_1.0.1.tar.gz',type='source',repos=NULL) Error in library(jhBase) : there is no package called �jhBase�

Re: [R] Building Packages.

2024-03-20 Thread Ben Bolker
Ivan, can you give more detail on this? I've heard this issue mentioned, but when I open RStudio and run find("install.packages") it returns "utils::install.packages", and running dump() from within RStudio console and from an external "R --vanilla" gives identical results. I thought at

Re: [R] Building Packages.

2024-03-20 Thread Ivan Krylov via R-help
В Wed, 20 Mar 2024 16:02:27 + Jorgen Harmse via R-help пишет: > > install.packages(tar,type='source',repos=NULL) > > Error in library(jhBase) : there is no package called ‘jhBase’ > > Execution halted > > Warning in install.packages(tar, type = "source", repos = NULL) : > >

[R] Building Packages.

2024-03-20 Thread Jorgen Harmse via R-help
I have a source file with oxygen-style comments (and description & licence files), and I’m trying to build a package. oxygen & devtools seem to work, and the tarball exists, but install.packages balks. Does anyone know what’s happening? Regards, Jorgen Harmse. >

[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

[R] [Rd] R 4.4.0 scheduled for April 24

2024-03-19 Thread Peter Dalgaard via R-announce
Full schedule is available on developer.r-project.org (pending update from SVN). -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] Problem when trying to install packages

2024-03-18 Thread peter dalgaard
2 things: 1) utils::install.packages() sometimes helps if the Rstudio version got wedged somehow. 2) You seem to be missing several Recommended packages (lattice, MASS, Matrix, nlme, cluster,). Did you install R without those? -pd > On 16 Mar 2024, at 05:09 , javad bayat wrote: >

Re: [R] Problem when trying to install packages

2024-03-16 Thread Uwe Ligges
On 16.03.2024 10:48, javad bayat wrote: Dear all; I found a useful video on youtube that has explained how to install Rtools. I followed the instructions and the problem was solved. " Installing R version 4.0 + RTools 4.0 + RStudio For Data Science (#R ?? A recent set of released software

Re: [R] Problem when trying to install packages

2024-03-16 Thread javad bayat
Dear all; I found a useful video on youtube that has explained how to install Rtools. I followed the instructions and the problem was solved. " Installing R version 4.0 + RTools 4.0 + RStudio For Data Science (#R #RTools #RStudio #DataScience) - YouTube

Re: [R] Problem when trying to install packages

2024-03-16 Thread Bert Gunter
Though Navigator may mess up any Rtools stuff because it handles the directory trees where packages and dependencies are located, does it not? If so, maybe just reinstall RStudio directly from its website to proceed. Just a guess obviously. Bert On Sat, Mar 16, 2024, 05:09 javad bayat wrote: >

Re: [R] Problem when trying to install packages

2024-03-16 Thread Bert Gunter
? Google it! "How to install packages using Rtools" Bert On Sat, Mar 16, 2024, 05:09 javad bayat wrote: > Dear Rui; > Many thanks for your reply. I have installed Rtools (rtools43-5958-5975) on > my PC and I have R version 4.3.3 and 4.3.2 to install. Also I have > installed Rstudio through

Re: [R] Problem when trying to install packages

2024-03-15 Thread javad bayat
Dear Rui; Many thanks for your reply. I have installed Rtools (rtools43-5958-5975) on my PC and I have R version 4.3.3 and 4.3.2 to install. Also I have installed Rstudio through Anaconda Navigator. But I do not know how to use Rtools for installing the R packages. I would be more than happy if

Re: [R] write.xlsx error message

2024-03-15 Thread Subia Thomas OI-US-LIV5
Good point, indeed it should have been read.xlsx. Mit freundlichen Gruessen / Cordialement / Best regards Thomas Subia Lean Six Sigma Senior Practitioner DRÄXLMAIER Group DAA Draexlmaier Automotive of America LLC 801 Challenger Street Livermore CA 94551 Ph: 925-978-8111

[R] [R-pkgs] clusterMI: Cluster Analysis with Missing Values by Multiple Imputation

2024-03-15 Thread Vincent Audigier via R-packages
Dear all, I am pleased to announce the release of a new package named 'clusterMI' on CRAN. clusterMI allows clustering of incomplete observations by addressing missing values using multiple imputation. For achieving this goal, the methodology consists in three steps: 1. missing data

Re: [R] write.xlsx error message

2024-03-15 Thread gernophil--- via R-help
I think remember this error from trying to write an Excel file that already existed. If this file already exists, try to delete it and see, if this solves the issue. Besides that you're writing that you are "Using write.xlsx to extract data from an Excel file", write.xlsx() is to write an

Re: [R] write.xlsx error message

2024-03-15 Thread Ivan Krylov via R-help
В Thu, 14 Mar 2024 14:12:12 + Subia Thomas OI-US-LIV5 пишет: > Using write.xlsx to extract data from an Excel file, I get this error > message. > > > Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", > cl, : java.lang.OutOfMemoryError: GC overhead limit exceeded There

[R] write.xlsx error message

2024-03-15 Thread Subia Thomas OI-US-LIV5
Colleagues, Using write.xlsx to extract data from an Excel file, I get this error message. Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : java.lang.OutOfMemoryError: GC overhead limit exceeded I was thinking that this might be a RAM issue but with 16 GB RAM, I

[R] CADFtest difference between max.lag.y with criterion and without criterion

2024-03-15 Thread José Dias Curto via R-help
Dear Professor Bernhard, Sorry for take your time, but I found something strange that I am not able to explain/understand. Suppose that I compute the ADF test by using the criterion="BIC" to select the lags: summary(CADFtest(y, max.lag.y = 20, type = "drift", criterion="BIC")) Suppose that 2

Re: [R] Rtools and things dependent on it

2024-03-14 Thread Tomas Kalibera
On 2/24/24 01:01, David Winsemius wrote: On 2/23/24 14:34, avi.e.gr...@gmail.com wrote: This may be a dumb question and the answer may make me feel dumber. I have had trouble for years with R packages wanting Rtools on my machine and not being able to use it. Many packages are fine as

Re: [R] refresh.console() function?

2024-03-13 Thread Deepayan Sarkar
Perhaps you mean https://search.r-project.org/R/refmans/utils/html/flush.console.html Best, Deepayan On Wed, 13 Mar, 2024, 8:59 pm Christofer Bogaso, < bogaso.christo...@gmail.com> wrote: > Hi, > > I run a lengthy for loop and I want to display loop status for each > step in my loop. > > I

Re: [R] refresh.console() function?

2024-03-13 Thread Enrico Schumann
On Wed, 13 Mar 2024, Christofer Bogaso writes: > Hi, > > I run a lengthy for loop and I want to display loop status for each > step in my loop. > > I previously heard of a R function namely refresh.console() which > would print the status within the loop as it progresses. > > However I see this >

[R] refresh.console() function?

2024-03-13 Thread Christofer Bogaso
Hi, I run a lengthy for loop and I want to display loop status for each step in my loop. I previously heard of a R function namely refresh.console() which would print the status within the loop as it progresses. However I see this > help.search("refresh.console") No vignettes or demos or help

Re: [R] Generating mouse click and hold using R

2024-03-13 Thread Jeff Newmiller via R-help
No idea if the package below would work. This package is MSWindows only. Since this was readily found using a search engine, you should have mentioned that you already found this and why it didn't work for you when you posted.

Re: [R] Generating mouse click and hold using R

2024-03-13 Thread Ivan Krylov via R-help
В Wed, 13 Mar 2024 19:01:59 +0530 Christofer Bogaso пишет: > I need simulate mouse click in windows machine at certain coordinate > on screen and hold the click for certain seconds e.g. for 5 seconds There's no interface for this in base R. It's always possible to write some Windows API code to

[R] Generating mouse click and hold using R

2024-03-13 Thread Christofer Bogaso
Hi, I wonder if R can provide any functionality where I need simulate mouse click in windows machine at certain coordinate on screen and hold the click for certain seconds e.g. for 5 seconds Really appreciate if I can have someone suggestion how above can be simulated with R Thanks and regards,

Re: [R] Problem with R coding

2024-03-12 Thread Ivan Krylov via R-help
В Tue, 12 Mar 2024 14:57:28 + CALUM POLWART пишет: > That's almost certainly going to be either the utf-8 character in the > path The problem, as diagnosed by Maria in the first post of the thread, is that the user home directory as known to R is stored in the ANSI encoding instead of

Re: [R] Problem with R coding

2024-03-12 Thread Iris Simmons
Hi Maria, I had something similar on my Windows work laptop at some point where the home directory was something containing non ASCII characters. The easy solution is to copy said directly from the file explorer into utils::shortPathName, and then set that as the home directory. In my case, >

Re: [R] Problem with R coding

2024-03-12 Thread CALUM POLWART
That's almost certainly going to be either the utf-8 character in the path OR the use of one drive which isn't really a subfolder as I understand it. When I've had these issues in the past, I've been able to mount a drive (say U:/ ) which sites further down /up the folder tree so that R just

Re: [R] Problem with R coding

2024-03-12 Thread Ivan Krylov via R-help
Dear Maria, I'm sorry for somehow completely missing the second half of your message where you say that you've already tried the workaround. В Tue, 12 Mar 2024 07:43:08 + Maria Del Mar García Zamora пишет: > I have tried to start R from CDM using: C:\Users\marga>set >

Re: [R] Problem with R coding

2024-03-12 Thread Ivan Krylov via R-help
В Tue, 12 Mar 2024 07:43:08 + Maria Del Mar García Zamora пишет: > Error: package or namespace load failed for ‘Rcmdr’: > .onLoad failed in loadNamespace() for 'tcltk2', details: > call: file.exists("~/.Rtk2theme") > error: file name conversion problem -- name too long? > > Once this

Re: [R] Problem with R coding

2024-03-12 Thread Rui Barradas
Às 07:43 de 12/03/2024, Maria Del Mar García Zamora escreveu: Hello, This is the error that appears when I try to load library(Rcmdr). I am using R version 4.3.3. I have tried to upload the packages, uninstall them and intalling them again and nothing. Loading required package: splines

Re: [R] [External] Function environments serialize to a lot of data until they don't

2024-03-11 Thread Ivan Krylov via R-help
Dear Luke, Thank you for the detailed explanation of the power of force()! It does solve my problem in a much more reliable manner than setting function environments manually. On Fri, 8 Mar 2024 15:46:52 -0600 (CST) luke-tier...@uiowa.edu wrote: > Having a reference to a large environment is

[ESS] Error installing on Mac

2024-03-09 Thread Sparapani, Rodney via ESS-help
Hi Liz: I would just echo Martin�s remarks. Start with Vincent�s great resource at https://emacs-modified.gitlab.io And then install ESS 24.01.1 over it with make. That�s what I do. Thanks -- Rodney Sparapani, Associate Professor of Biostatistics, He/Him/His Vice President, Wisconsin Chapter

Re: [R] [External] Function environments serialize to a lot of data until they don't

2024-03-08 Thread luke-tierney--- via R-help
On Fri, 8 Mar 2024, Ivan Krylov via R-help wrote: Hello R-help, I've noticed that my 'parallel' jobs take too much memory to store and transfer to the cluster workers. I've managed to trace it to the following: # `payload` is being written to the cluster worker. # The function FUN had been

[R] Function environments serialize to a lot of data until they don't

2024-03-08 Thread Ivan Krylov via R-help
Hello R-help, I've noticed that my 'parallel' jobs take too much memory to store and transfer to the cluster workers. I've managed to trace it to the following: # `payload` is being written to the cluster worker. # The function FUN had been created as a closure inside my package:

Re: [ESS] Error installing on Mac

2024-03-08 Thread Martin Maechler via ESS-help
> Liz Hare via ESS-help > on Thu, 7 Mar 2024 09:49:12 -0500 writes: > Liz Hare via ESS-help > on Thu, 7 Mar 2024 09:49:12 -0500 writes: > Hi all, > I'm updating ESS by installing from source. I uncommented the MacOS related lines from makeconfig, but I get this

[ESS] Error installing on Mac

2024-03-07 Thread Liz Hare via ESS-help
Hi all, I'm updating ESS by installing from source. I uncommented the MacOS related lines from makeconfig, but I get this error: > make /bin/sh: /Applications/Emacs.app/Contents/MacOS/Emacs: No such file or directory * VERSIONS ** ESS 24.01.1 ESSR

Re: [R] How to invert axis within defined range with ggplot2 scale_y_reverse?

2024-03-05 Thread Luigi Marongiu
Thank you. I though the values would have been reversed automatically. Case closed then On Tue, Mar 5, 2024 at 2:43 PM Duncan Murdoch wrote: > > On 05/03/2024 7:16 a.m., Luigi Marongiu wrote: > > A <- rep(c(0, 3, 6, 12, 24), 3) > > B <- c(rep(0,5), rep(1,5), rep(2,5)) > > V <- c(27.5,27.01,

Re: [R] How to invert axis within defined range with ggplot2 scale_y_reverse?

2024-03-05 Thread Duncan Murdoch
On 05/03/2024 7:16 a.m., Luigi Marongiu wrote: A <- rep(c(0, 3, 6, 12, 24), 3) B <- c(rep(0,5), rep(1,5), rep(2,5)) V <- c(27.5,27.01,27.75,27.98,27.4,25.69, 26.17,27.78,26.08, 24.97,23.18,21.78,22.49,21.85,22.2) df <- data.frame(Conc = A,

[R] How to invert axis within defined range with ggplot2 scale_y_reverse?

2024-03-05 Thread Luigi Marongiu
Hello, I am drawing some data with ggplot2 and would like to reverse the order of the y axis and set a custom range for it. I can do the former but when I add the key `limits` to `scale_y_reverse` I get an error as shows below and, worse, no data shown in the plot. How can I properly set a reverse

[R] Default t test in R is Welch's test, not Student's, and can be very problematic

2024-03-04 Thread Curtis, David
Hi all. I'm just writing to draw your attention to this paper, which is Open Access: Curtis, D. Welch�s t test is more sensitive to real world violations of distributional assumptions than student�s t test but logistic regression is more robust than either. Stat Papers (2024).

Re: [R] Initializing vector and matrices

2024-03-02 Thread Jeff Newmiller via R-help
To be fair, these replies no longer include the original question, which was IMO really quite clear (if misguided), and was actually targeted at understanding pre-allocation for better performance. Richard's suggestion to store the along-the-way constructed vectors in a list and examine the

Re: [R] Initializing vector and matrices

2024-03-02 Thread Bert Gunter
"It would be really really helpful to have a clearer idea of what you are trying to do." Amen! But in R, "constructing" objects by extending them piece by piece is generally very inefficient (e.g. https://r-craft.org/growing-objects-and-loop-memory-pre-allocation/), although sometimes?/often?

Re: [R] installation: while running make, unable to run pdflatex on 'NEWS.tex'

2024-03-02 Thread Benjamin Tyner
Thank you Ivan and Richard... Short version: a simple "sudo apt install texlive" fixed it. Longer version (attempt at a post-mortem): previously (back on 2023-11-05) on this same system I built R version 4.3.2; and /home/btyner/R432/lib/R/doc/NEWS.pdf does exist (and is a valid pdf with 48

Re: [R] installation: while running make, unable to run pdflatex on 'NEWS.tex'

2024-03-02 Thread Richard O'Keefe
On my system, pdftexcmds.sty can be found in /usr/share/texlive/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty A quick poking around with 'apt' and 'dpkg-query -L' told me that this comes from the texlive-latex-recommended Ubuntu package. So on my system, if I didn't already have this, sudo apt

Re: [R] Initializing vector and matrices

2024-03-02 Thread Richard O'Keefe
The matrix equivalent of x <- ... v <- ... x[length(x)+1] <- v is m <- ... r <- ... m <- rbind(m, r) or m <- ... k <- ... m <- cbind(m, c) A vector or matrix so constructed never has "holes" in it. It's better to think of CONSTRUCTING vectors and matrices rather than

Re: [R] installation: while running make, unable to run pdflatex on 'NEWS.tex'

2024-03-01 Thread Ivan Krylov via R-help
В Fri, 1 Mar 2024 10:46:53 -0500 Benjamin Tyner пишет: > my platform info: > > Platform: x86_64-pc-linux-gnu (64-bit) > Running under: Ubuntu 22.04.4 LTS Quick things first: have you installed all the build-dependencies? apt build-dep r-base (maybe with --install-suggests? haven't

Re: [R] installation: while running make, unable to run pdflatex on 'NEWS.tex'

2024-03-01 Thread Jeff Newmiller via R-help
This really is all LaTeX errors, not R errors. Both examples complain that pdftexcmds.sty is not installed. Most "sty" files are in LaTeX packages. Each LaTeX distribution has its own way to install packages ... but the difficulty is usually on the same order of difficulty as installing R

Re: [R] dput(..., file = stderr())

2024-03-01 Thread Ivan Krylov via R-help
В Fri, 1 Mar 2024 10:54:08 -0500 Benjamin Tyner пишет: > > dput(letters, file = stderr()) > c("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", > "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", > "z") > Warning message: > In dput(letters,

Re: [R] [External] dput(..., file = stderr())

2024-03-01 Thread Richard M. Heiberger
I see the same thing in a fresh R session > dput(letters, file = stderr()) c("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z") Warning message: In dput(letters, file = stderr()) : wrote too few characters >

Re: [R] gsub issue with consecutive pattern finds

2024-03-01 Thread Bert Gunter
Oh, wait a second. I misread your original post. Please ignore my truly incorrect suggestion. -- Bert On Fri, Mar 1, 2024 at 7:57 AM Bert Gunter wrote: > > Here's another *incorrect* way to do it -- incorrect because it will > not always work, unlike Iris's correct solution. But it does not >

Re: [R] gsub issue with consecutive pattern finds

2024-03-01 Thread Bert Gunter
Here's another *incorrect* way to do it -- incorrect because it will not always work, unlike Iris's correct solution. But it does not require PERL type matching. The idea: separate the two vowels in the regex by a character that you know cannot appear (if there is such) and match it optionally,

[R] dput(..., file = stderr())

2024-03-01 Thread Benjamin Tyner
Curious to know if this warning is expected behavior, and if so, what is the recommended way instead: > dput(letters, file = stderr()) c("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z") Warning

[R] installation: while running make, unable to run pdflatex on 'NEWS.tex'

2024-03-01 Thread Benjamin Tyner
A kind member of R-core suggested this is due to a misconfiguration on my system, and to post it to the mailing list for troubleshooting. When trying to build R version 4.3.3, in at least two places during the process it gives LaTeX errors of the form: (example 1) you should 'make

Re: [R] Interactions in regression

2024-03-01 Thread Jacek Kownacki
Hi Rolf, No it is not. I don't know to which question did you want to respond ? I desribed everything in my first email and attached links from SO with pictures included, which are quite understandable. Cheers, Jacek śr., 28 lut 2024 o 19:42 Jacek Kownacki napisał(a): > Hi Rolf, > No it is

Re: [R] Interactions in regression

2024-03-01 Thread Jacek Kownacki
Hi Rolf, No it is not. I don't know to which question did you want to respond ? I desribed everything in my first email and attached links from SO with pictures included, which are quite understandable. Cheers, Jacek wt., 27 lut 2024 o 02:29 Rolf Turner napisał(a): > > I have no real idea

Re: [R] gsub issue with consecutive pattern finds

2024-03-01 Thread Iago Giné Vázquez
Hi Iris, Thank you. Further, very nice solution. Best, Iago On 01/03/2024 12:49, Iris Simmons wrote: > Hi Iago, > > > This is not a bug. It is expected. Patterns may not overlap. However, there > is a way to get the result you want using perl: > > ```R > gsub("([aeiouAEIOU])(?=[aeiouAEIOU])",

Re: [R] gsub issue with consecutive pattern finds

2024-03-01 Thread Iris Simmons
Hi Iago, This is not a bug. It is expected. Patterns may not overlap. However, there is a way to get the result you want using perl: ```R gsub("([aeiouAEIOU])(?=[aeiouAEIOU])", "\\1_", "aerioue", perl = TRUE) ``` The specific change I made is called a positive lookahead, you can read more

<    1   2   3   4   5   6   7   8   9   10   >