ropensci / RNeXML

Implementing semantically rich NeXML I/O in R
https://docs.ropensci.org/RNeXML
Other
13 stars 9 forks source link

test_publish.R is skipped silently in its entirety #178

Open hlapp opened 5 years ago

hlapp commented 5 years ago

The test_publish.R code is wrapped in if(0), i.e., it's never run. That's bad in multiple ways, one of which is that it's not even reported as a test that's being skipped even though effectively it is.

Perhaps this really isn't currently fit to run as a test anywhere, but even then it should use skip() so that it's at least reported as a test that is being skipped.

cboettig commented 5 years ago

yeah, it should use skip. Though really I think we should deprecate the publish() methods. Uploading NeXML file to figshare doesn't seem like a particularly effective way to share NeXML. What do you think?

hlapp commented 5 years ago

Though really I think we should deprecate the publish() methods.

I agree, actually. I think it should simply be out of scope for this package. Looking at the code, there's not that much special stuff that's being done. At most I'd argue this should be a vignette for how one might upload NeXML data to Figshare (because obviously there are other ways to massage and deposit metadata). But even that might be out of scope, and if anywhere such a vignette should arguably be part of rfigshare.

cboettig commented 5 years ago

:+1: