From kry|ov@r00t @end|ng |rom gm@||@com  Tue Oct  3 21:47:56 2023
From: kry|ov@r00t @end|ng |rom gm@||@com (Ivan Krylov)
Date: Tue, 3 Oct 2023 22:47:56 +0300
Subject: [Rd] as(<dgCMatrix>, "dgTMatrix")' is deprecated.
In-Reply-To: <9C686E75-C639-41FA-8276-E008FD58E5D7@illinois.edu>
References: <9C686E75-C639-41FA-8276-E008FD58E5D7@illinois.edu>
Message-ID: <20231003224756.6d325751@Tarkus>

On Tue, 3 Oct 2023 16:50:55 +0000
"Koenker, Roger W" <rkoenker at illinois.edu> wrote:

>  I thought it might come from Rmosek, but mosek folks don?t think so.

I downloaded the Rmosek source package using

download.packages(
 'Rmosek', '.',
 repos='https://download.mosek.com/R/10.1'
)

...and there are the deprecated calls:


Rmosek/R$ grep -C2 -r as\(.*dgT
toCSCMatrix.R-  }
toCSCMatrix.R-  else if (is(obj,"dgCMatrix")) {
toCSCMatrix.R:    obj <- as(obj,"dgTMatrix")
toCSCMatrix.R-  }
toCSCMatrix.R-  else if (is(obj,"list") && setequal(names(obj),c("i","j","v","ncol","nrow"))) {
--
toCSCMatrix.R-                         x=obj[['v']],
toCSCMatrix.R-                         dims=c(obj[['nrow']], obj[['ncol']]) )
toCSCMatrix.R:    obj <- as(tmp, "dgTMatrix")
toCSCMatrix.R-  }
toCSCMatrix.R-  else if (canCoerce(obj,"dgTMatrix")) {
toCSCMatrix.R-    # Assume coercion is meaningful, and that
toCSCMatrix.R-    # users are aware of computational overhead.
toCSCMatrix.R:    obj <- as(obj,"dgTMatrix")
toCSCMatrix.R-  }
toCSCMatrix.R-  else {


-- 
Best regards,
Ivan



[Rd] as(<dgCMatrix>, "dgTMatrix")' is deprecated.
Ivan Krylov