[Rd] as(<dgCMatrix>, "dgTMatrix")' is deprecated.
Ivan Krylov
kry|ov@r00t @end|ng |rom gm@||@com
Tue Oct 3 21:47:56 CEST 2023
On Tue, 3 Oct 2023 16:50:55 +0000
"Koenker, Roger W" <rkoenker using 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
More information about the R-devel
mailing list