Re: [R] install.packages and package dependencies

2025-02-11 Thread Berwin A Turlach
On Thu, 6 Feb 2025 09:36:23 -0800 arilamst...@gmail.com wrote: > It appears that install.packages does not automatically install > package dependencies when the package is installed via a URL. [...] > When I type getOption('repos') I get: > >CRAN > "https://cran.rstudio.co

Re: [R] Unexpected result after auto-attaching of the Matrix package

2025-02-11 Thread Jeff Newmiller via R-help
Why aren't you loading the package before you load the object that assumes the relevant methods for that object are available? On February 11, 2025 4:51:48 AM PST, H B via R-help wrote: >Dear all, > >I just stumbled on this behavior - not sure if this is expected: > >R version 4.4.2 (2024-10-31

[R] Unexpected result after auto-attaching of the Matrix package

2025-02-11 Thread H B via R-help
Dear all, I just stumbled on this behavior - not sure if this is expected: R version 4.4.2 (2024-10-31) -- "Pile of Leaves" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu > library(Matrix) > sparseMatrix(i=1:10, j=1:10, x=rnorm(10)) |> saveRDS("~/Do