-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapt to new spatstat.random
package.
#2
Conversation
Also weeded out hard dependencies on `spatstat` (which was never used) and `spatstat.core` which is only used in tests, vignettes and README, so it can be optional (in `Suggests`). As far as I can see all functions from `envi` work without `spatstat.core` installed.
Thanks, @rubak! I appreciate your (and the spatstat team) time and energy to help a new(er) developer. I also manage the sparrpowR package so I suspect some similar issues. |
Hi @rubak, I see you made a similar merge request for the sparrpowR package (machiela-lab/sparrpowR@6bbdea5) and noticed you listed Any particular reason for the discrepancy? Thanks for all the assistance. |
Here in Typically You use if(requireNamespace(spatstat.core){
# Run tests as usual
} else{
mesasge("Test skipped since spatstat.core is not installed")
} but I think this might be overkill since it is only tests that fail and not actual user examples/functions. |
Thanks @rubak! This rundown is helpful. I ran through each package and listed the appropriate Suggests. The |
Hi @rubak. I recently pushed an updated version of this package to CRAN and three environments have ERROR in the CRAN Package Check Results. r-devel-linux-x86_64-debian-gcc The error appears to be same in these environments relating to:
I no longer have the Thanks! |
Hi @idblr this is indeed confusing. The error actually comes from |
Thanks, @rubak! I'll watch how it unfolds. |
Also weeded out hard dependencies on
spatstat
(which was never used) andspatstat.core
which is only used in tests, vignettes and README, so it can be optional (inSuggests
). As far as I can see all functions fromenvi
work withoutspatstat.core
installed.When
spatstat
(orspatstat.core
) was inDepends
it implied that whenever you loadedenvi
thenspatstat
(and hencespatstat.core
,spatstat.geom
, ...). This means that it was obsolete to write firstlibrary(envi)
and thenlibrary(spatstat.core)
afterwards. In caseenvi
would never be used without also loadingspatstat
(orspatstat.core
) you may of course reinstate this feature.Feel free to ask if any of this is unclear.