[Rd] as(<dgCMatrix>, "dgTMatrix")' is deprecated.
Koenker, Roger W
rkoenker @end|ng |rom ||||no|@@edu
Wed Oct 4 10:01:45 CEST 2023
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 using gmail.com> wrote:
>
> 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://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
More information about the R-devel
mailing list