From rkoenker @end|ng |rom ||||no|@@edu  Wed Oct  4 10:01:45 2023
From: rkoenker @end|ng |rom ||||no|@@edu (Koenker, Roger W)
Date: Wed, 4 Oct 2023 08:01:45 +0000
Subject: [Rd] as(<dgCMatrix>, "dgTMatrix")' is deprecated.
In-Reply-To: <20231003224756.6d325751@Tarkus>
References: <9C686E75-C639-41FA-8276-E008FD58E5D7@illinois.edu>
 <20231003224756.6d325751@Tarkus>
Message-ID: <B80F10D8-7590-4BAE-8FB1-21D306CA1822@illinois.edu>

Thanks, Ivan, I should have had the initiative to do this myself.  I?ve now written to the Mosek folks in the hope that they will update this in Rmosek.

Best
Roger

> On Oct 3, 2023, at 8:47 PM, Ivan Krylov <krylov.r00t at gmail.com> wrote:
> 
> 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://urldefense.com/v3/__https://download.mosek.com/R/10.1__;!!DZ3fjg!-J68cgVdf_vRXm7yhSxSNzoDv6i6681nySXG9qhE808C3UTKTWGNCfZEWchGfsh2FZbBpQJuWa8Tr8_mo3f2xFo$ '
> )
> 
> ...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.
Koenker, Roger W