Skip to content

Commit

Permalink
[r] Suppress deprecation warnings in write_soma.DataFrame() (#1876)
Browse files Browse the repository at this point in the history
Bioc 3.18 and R 4.3.2 now throw deprecation warnings when casting from
`S4Vectors::DataFrame` to `data.frame`; this PR suppresses deprecation
warnings when doing that cast, but allows additional warnings to
percolate through

[sc-36559]

replaces #1874
resolves #1875
  • Loading branch information
mojaveazure committed Nov 6, 2023
1 parent 08338c5 commit 374701f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/r/R/write_bioc.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ write_soma.DataFrame <- function(
}
}
index <- attr(x, which = 'index')
x <- as.data.frame(x)
x <- suppressWarnings(as.data.frame(x), classes = "deprecatedWarning")
attr(x, which = 'index') <- index
return(write_soma(
x = x,
Expand Down

0 comments on commit 374701f

Please sign in to comment.