I?ve been getting this warning for a while now (about five years if memory serves) and I?m finally tired of it, but also too tired to track it down in Matrix. As far as I can grep I have no reference to either deprecated object, only the apparently innocuous Matrix::Matrix(A, sparse = TRUE). Can someone advise, Martin perhaps? I thought it might come from Rmosek, but mosek folks don?t think so. https://groups.google.com/g/mosek/c/yEwXmMfHBbg/m/l_mkeM4vAAAJ All the best to all the best of the R community, R
On 03/10/2023 12:50 p.m., Koenker, Roger W wrote:> I?ve been getting this warning for a while now (about five years if memory serves) and I?m finally tired of it, but also too tired to track it down in Matrix. As far as I can grep I have no reference to either deprecated object, only the apparently innocuous Matrix::Matrix(A, sparse = TRUE). Can someone advise, Martin perhaps? I thought it might come from Rmosek, but mosek folks don?t think so. > https://groups.google.com/g/mosek/c/yEwXmMfHBbg/m/l_mkeM4vAAAJA quick scan of that discussion didn't turn up anything relevant, e.g. a script to produce the warning. Could you be more specific, or just post the script here? In general, a good way to locate the source of a warning is to set options(warn=2) to turn it into an error, and then trigger it. The traceback from the error will include a bunch of junk from the code that catches the warning, but it will also include the context where it was triggered. Duncan Murdoch
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