SwampThingPaul / NADA2

Non-detects And Data Analysis
Other
14 stars 6 forks source link

Error when running Peto-Peto one-factor test in NADA2 #14

Open dlhask opened 2 months ago

dlhask commented 2 months ago

When I attempt to run the Peto-Peto test, I get the attached error.

cen1way(ospNd.noPop$PFHxS, ospNd.noPop$PFHxS.LT, ospNd.noPop$Region2) # PFHxS using censored data approach (similar to Kruskal-Wallis) Error in match.arg(ci.sample.size, c("Total", "Uncensored")) : 'arg' must be NULL or a character vector In addition: Warning message: One or more group(s) do not have censored data.`

dlhask commented 2 months ago

This error holds true even when using example data 'PbHeron' and the cen1way example listed for NADA2 at: https://swampthingecology.org/NADA2/reference/cen1way.html#examples

SwampThingPaul commented 2 months ago

Hi @dlhask, I think this error stems from recent changes to a dependant package(s). It's most likely the EnvStats package. I'm working on the fix and will be submitting to CRAN soon.

dlhask commented 2 months ago

Hi @SwampThingPaul, I appreciate the update and the helpful information! Hopefully the fix won't be too much trouble. Do you happen to have an idea of when you might have the revision submitted to CRAN?

SwampThingPaul commented 2 months ago

Hi @dlhask, I just submitted to cran a couple of hours ago. I just noticed that my last submission (a couple of weeks ago) didn't go through. Fingers crossed it will be posted soon. The development version should be fixed (if you have that installed and EnvStats updated). See the readme for how to install the development version of the package.

dlhask commented 2 months ago

Hi @SwampThingPaul, thanks so much for your responsiveness and assistance. I was able to install the dev version of the package, and all is functioning properly now. Cheers! :)