Closed njtierney closed 5 years ago
Hello and many thanks for the PR @njtierney and for trying to fix the tests!
I'll have a look at this at the weekend. In the meantime @isteves, if you have any suggestions let me know :)
Hi @njtierney. So I've had a look and I was wondering what version of EML you have installed? CRAN has version 1.0.3 in which read_eml()
still returns an S4 class:
eml_path <- system.file("example-dataset/broodTable_metadata.xml", package = "dataspice")
eml <- EML::read_eml(eml_path)
isS4(eml)
#> [1] TRUE
devtools::session_info()
#> Packages -----------------------------------------------------------------
#> package * version date source
#> EML 1.0.3 2017-05-01 CRAN (R 3.4.4)
Created on 2019-02-16 by the reprex package (v0.2.0).
While the dev version 1.99.0 uses S3 classes:
eml_path <- system.file("example-dataset/broodTable_metadata.xml", package = "dataspice")
eml <- EML::read_eml(eml_path)
isS4(eml)
#> [1] FALSE
devtools::session_info()
#> Packages -----------------------------------------------------------------
#> package * version date source
#> EML 1.99.0 2019-02-16 Github (ropensci/EML@88accf8)
#> emld 0.0.2 2019-02-16 Github (cboettig/emld@ac5e3dd)
Created on 2019-02-16 by the reprex package (v0.2.0).
and all tests pass
library(devtools)
test("/Users/Anna/Desktop/dataspice")
#> Loading dataspice
#> Loading required package: testthat
#>
#> Attaching package: 'testthat'
#> The following object is masked from 'package:devtools':
#>
#> setup
#> Testing dataspice
#> ✔ | OK F W S | Context
#>
⠏ | 0 | test-create_spice
⠋ | 1 | test-create_spice
⠙ | 2 | test-create_spice
⠹ | 3 | test-create_spice
✔ | 3 | test-create_spice
#>
⠏ | 0 | test-eml_to_spice
⠋ | 1 | test-eml_to_spice
⠙ | 2 | test-eml_to_spice
⠹ | 3 | test-eml_to_spice
⠸ | 4 | test-eml_to_spice
⠼ | 5 | test-eml_to_spice
⠴ | 6 | test-eml_to_spice
⠦ | 7 | test-eml_to_spice
⠧ | 8 | test-eml_to_spice
⠇ | 9 | test-eml_to_spice
⠏ | 10 | test-eml_to_spice
⠋ | 11 | test-eml_to_spice
⠙ | 12 | test-eml_to_spice
⠹ | 13 | test-eml_to_spice
⠸ | 14 | test-eml_to_spice
⠼ | 15 | test-eml_to_spice
⠴ | 16 | test-eml_to_spice
⠦ | 17 | test-eml_to_spice
⠧ | 18 | test-eml_to_spice
⠇ | 19 | test-eml_to_spice
⠏ | 20 | test-eml_to_spice
⠋ | 21 | test-eml_to_spice
⠙ | 22 | test-eml_to_spice
⠹ | 23 | test-eml_to_spice
⠸ | 24 | test-eml_to_spice
✔ | 24 | test-eml_to_spice [2.2 s]
#>
⠏ | 0 | test-prep_attributes.R
⠋ | 1 | test-prep_attributes.R
⠙ | 2 | test-prep_attributes.R
⠹ | 3 | test-prep_attributes.R
⠸ | 4 | test-prep_attributes.R
⠼ | 5 | test-prep_attributes.R
⠴ | 6 | test-prep_attributes.R
⠦ | 7 | test-prep_attributes.R
⠧ | 8 | test-prep_attributes.R
⠇ | 9 | test-prep_attributes.R
⠏ | 10 | test-prep_attributes.R
⠋ | 11 | test-prep_attributes.R
✔ | 11 | test-prep_attributes.R [0.2 s]
#>
⠏ | 0 | write_spice
⠋ | 1 | write_spice
⠙ | 2 | write_spice
✔ | 2 | write_spice
#>
#> ══ Results ════════════════════════════════════════════════════════════════════════════════════
#> Duration: 2.7 s
#>
#> OK: 40
#> Failed: 0
#> Warnings: 0
#> Skipped: 0
Created on 2019-02-16 by the reprex package (v0.2.0).
So we can either proactively switch now to EML
dev version and then switch again when it's available on CRAN or wait and just switch straight to the CRAN version later. I'm wondering, @cboettig, do you have any idea when the S3 EML version will be on CRAN? Any thoughts on the matter?
Thanks Anna. Yeah, the new EML depends on emld, which isn’t on CRAN yet but just cleared rOpenSci peer review yesterday. So I m hoping to have both up to CRAN in the next week or so
On Sat, Feb 16, 2019 at 1:55 AM Anna Krystalli notifications@github.com wrote:
Hi @njtierney https://github.com/njtierney. So I've had a look and I was wondering what version of EML you have installed? CRAN has version 1.0.3 which read_eml() still returns an S4 class:
eml_path <- system.file("example-dataset/broodTable_metadata.xml", package = "dataspice") eml <- EML::read_eml(eml_path)
isS4(eml)
> [1] TRUE
devtools::session_info()
> Packages -----------------------------------------------------------------
> package * version date source
> EML 1.0.3 2017-05-01 CRAN (R 3.4.4)
Created on 2019-02-16 by the reprex package http://reprex.tidyverse.org (v0.2.0).
While the dev version 1.99.0 uses S3 classes:
eml_path <- system.file("example-dataset/broodTable_metadata.xml", package = "dataspice") eml <- EML::read_eml(eml_path)
isS4(eml)
> [1] FALSE
devtools::session_info()
> Packages -----------------------------------------------------------------
> package * version date source
> EML 1.99.0 2019-02-16 Github (ropensci/EML@88accf8)
> emld 0.0.2 2019-02-16 Github (cboettig/emld@ac5e3dd)
Created on 2019-02-16 by the reprex package http://reprex.tidyverse.org (v0.2.0).
and all tests pass
library(devtools)
test("/Users/Anna/Desktop/dataspice")
> Loading dataspice
> Loading required package: testthat
>
> Attaching package: 'testthat'
> The following object is masked from 'package:devtools':
>
> setup
> Testing dataspice
> ✔ | OK F W S | Context
>
⠏ | 0 | test-create_spice
⠋ | 1 | test-create_spice
⠙ | 2 | test-create_spice
⠹ | 3 | test-create_spice
✔ | 3 | test-create_spice
>
⠏ | 0 | test-eml_to_spice
⠋ | 1 | test-eml_to_spice
⠙ | 2 | test-eml_to_spice
⠹ | 3 | test-eml_to_spice
⠸ | 4 | test-eml_to_spice
⠼ | 5 | test-eml_to_spice
⠴ | 6 | test-eml_to_spice
⠦ | 7 | test-eml_to_spice
⠧ | 8 | test-eml_to_spice
⠇ | 9 | test-eml_to_spice
⠏ | 10 | test-eml_to_spice
⠋ | 11 | test-eml_to_spice
⠙ | 12 | test-eml_to_spice
⠹ | 13 | test-eml_to_spice
⠸ | 14 | test-eml_to_spice
⠼ | 15 | test-eml_to_spice
⠴ | 16 | test-eml_to_spice
⠦ | 17 | test-eml_to_spice
⠧ | 18 | test-eml_to_spice
⠇ | 19 | test-eml_to_spice
⠏ | 20 | test-eml_to_spice
⠋ | 21 | test-eml_to_spice
⠙ | 22 | test-eml_to_spice
⠹ | 23 | test-eml_to_spice
⠸ | 24 | test-eml_to_spice
✔ | 24 | test-eml_to_spice [2.2 s]
>
⠏ | 0 | test-prep_attributes.R
⠋ | 1 | test-prep_attributes.R
⠙ | 2 | test-prep_attributes.R
⠹ | 3 | test-prep_attributes.R
⠸ | 4 | test-prep_attributes.R
⠼ | 5 | test-prep_attributes.R
⠴ | 6 | test-prep_attributes.R
⠦ | 7 | test-prep_attributes.R
⠧ | 8 | test-prep_attributes.R
⠇ | 9 | test-prep_attributes.R
⠏ | 10 | test-prep_attributes.R
⠋ | 11 | test-prep_attributes.R
✔ | 11 | test-prep_attributes.R [0.2 s]
>
⠏ | 0 | write_spice
⠋ | 1 | write_spice
⠙ | 2 | write_spice
✔ | 2 | write_spice
>
> ══ Results ════════════════════════════════════════════════════════════════════════════════════
> Duration: 2.7 s
>
> OK: 40
> Failed: 0
> Warnings: 0
> Skipped: 0
Created on 2019-02-16 by the reprex package http://reprex.tidyverse.org (v0.2.0).
So we can either proactively switch now to EML dev version and then switch again when it's available on CRAN or wait and just switch straight to the CRAN version later. I'm wondering, @cboettig https://github.com/cboettig, do you have any idea when the S3 EML version will be on CRAN? Any thoughts on the matter?
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/ropenscilabs/dataspice/pull/75#issuecomment-464328025, or mute the thread https://github.com/notifications/unsubscribe-auth/AANleqYR4sILgeM3mM4WF7aDe0n_PTeTks5vN9WfgaJpZM4a1XVA .
--
Carl Boettiger http://carlboettiger.info/
hello!
I had the CRAN version of EML
:
packageVersion("EML")
#> [1] '1.0.3'
Created on 2019-02-17 by the reprex package (v0.2.1)
Checking now, if I install ropensci/EML
, then it looks like I'm all good!
> test()
Loading dataspice
Testing dataspice
✔ | OK F W S | Context
✔ | 3 | test-create_spice [0.2 s]
✔ | 24 | test-eml_to_spice [3.3 s]
✔ | 11 | test-prep_attributes.R [0.2 s]
✔ | 2 | write_spice [0.2 s]
══ Results ══════════════════════════════════════════
Duration: 3.9 s
OK: 40
Failed: 0
Warnings: 0
Skipped: 0
Great! Thanks both. So, @cboettig if you let us know when the new version is on CRAN, we can retest and merge the PR in then.
Late to the conversation, but glad it's just a package version issue (👍 @annakrystalli on catching that). Looks like I need to upgrade my system now, too! Great to hear that the new version is almost on CRAN
Hello @cboettig 👋, I see emld
is now on CRAN! 🚀
Just wondering whether the new version of EML
is also imminent?
Hopefully! I just have to get up the courage... 🦁
dataspice currently uses eml2, which has moved to EML:
This PR helps fix things so that you can install it - unfortunately it has a few failing tests (output shown below), which I unfortunately could not work out how to fix, hopefully I didn't break anything!