Currently the spatstat.convert package Depends on all the packages sp, sf, terra.
It would be better if these packages were only Suggested so that the user doesn't have to install them all.
However, listing sp, sf, terra as Suggested packages doesn't seem to work, as it creates problems with the S4-style coercion
giving error messages like
package slot missing from signature for generic ‘coerce’
and classes "ppp", "SpatialPoints"
Unknown class "SpatialPoints"
when spatstat.convert was installed, when the suggested package was loaded, or when functions were executed.
If I inserted a declaration of virtual class "SpatialPoints" then I would get
package slot missing from signature for generic ‘coerce’
and classes "ppp", "SpatialPoints"
cannot use with duplicate class names (the package may need to be re-installed)
Reinstalling the entire R installation and all the packages did not fix the problem.
The only way I could avoid this was to put all the packages sp, sf, terra in the Depends field so that all the relevant classes are known.
A better solution would be welcome!
Currently the
spatstat.convertpackage Depends on all the packagessp,sf,terra.It would be better if these packages were only Suggested so that the user doesn't have to install them all.
However, listing
sp,sf,terraas Suggested packages doesn't seem to work, as it creates problems with the S4-style coerciongiving error messages like
when
spatstat.convertwas installed, when the suggested package was loaded, or when functions were executed.If I inserted a declaration of virtual class
"SpatialPoints"then I would getReinstalling the entire R installation and all the packages did not fix the problem.
The only way I could avoid this was to put all the packages
sp,sf,terrain the Depends field so that all the relevant classes are known.A better solution would be welcome!