Closed erikarasnick closed 3 months ago
https://github.com/geomarker-io/codec/blob/cdc8d1867178a91d782a1cfe71afd9c26b78a9b8/R/codec_dpkg_s3.R#L18
I think (!inherits(x, "dpkg::dpkg")) would work
(!inherits(x, "dpkg::dpkg"))
I changed the class of dpkg objects from dpkg::dpkg to dpkg when I changed to using the S3 system instead of S7 in the dpkg package. Are you using the latest version?
dpkg::dpkg
dpkg
https://github.com/geomarker-io/codec/blob/cdc8d1867178a91d782a1cfe71afd9c26b78a9b8/R/codec_dpkg_s3.R#L18
I think
(!inherits(x, "dpkg::dpkg"))
would work