Open annakrystalli opened 2 years ago
Have you installed EMODnetWCS?
yup. It's picking up the rest of the details. Just no date 🤔
I'll try
> pak::pak("EMODnet/EMODnetWCS")
✓ Updated metadata database: 3.32 MB in 7 files.
✓ Updating metadata database ... done
→ Will install 1 package.
→ Will download 1 package with unknown size.
+ EMODnetWCS 0.0.0.9010 [bld][cmp][dl] (GitHub: 88c8afc)
ℹ Getting 1 pkg with unknown size
✓ Got EMODnetWCS 0.0.0.9010 (source) (214.73 kB)
✓ Downloaded 1 package (214.73 kB)in 1.4s
ℹ Packaging EMODnetWCS 0.0.0.9010
✓ Packaged EMODnetWCS 0.0.0.9010 (634ms)
ℹ Building EMODnetWCS 0.0.0.9010
✓ Built EMODnetWCS 0.0.0.9010 (15.6s)
✓ Installed EMODnetWCS 0.0.0.9010 (github::EMODnet/EMODnetWCS@88c8afc) (25ms)
✓ 1 pkg + 58 deps: kept 55, added 1, dld 1 (NA B) [32.8s]
> citation(package = "EMODnetWCS")
To cite package ‘EMODnetWCS’ in publications
use:
Krystalli A (2022). _EMODnetWCS: Access
EMODnet Web Coverage Service data through R_.
https://github.com/EMODnet/EMODnetWCS,
https://emodnet.github.io/EMODnetWCS/.
A BibTeX entry for LaTeX users is
@Manual{,
title = {EMODnetWCS: Access EMODnet Web Coverage Service data through R},
author = {Anna Krystalli},
year = {2022},
note = {https://github.com/EMODnet/EMODnetWCS,
https://emodnet.github.io/EMODnetWCS/},
}
Warning message:
In citation(package = "EMODnetWCS") :
no date field in DESCRIPTION file of package ‘EMODnetWCS’
Oh, I didn't realise I needed to install it from GitHub to work. I had installed it locally from source
Thank you!
Let me try cloning! I was lazy :stuck_out_tongue_winking_eye:
I get the same as you with the local installation.
citation(package = "EMODnetWCS")
To cite package ‘EMODnetWCS’ in publications use:
Krystalli A (????). _EMODnetWCS: Access EMODnet Web
Coverage Service data through R_.
https://github.com/EMODnet/EMODnetWCS,
https://emodnet.github.io/EMODnetWCS/.
A BibTeX entry for LaTeX users is
@Manual{,
title = {EMODnetWCS: Access EMODnet Web Coverage Service data through R},
author = {Anna Krystalli},
note = {https://github.com/EMODnet/EMODnetWCS,
https://emodnet.github.io/EMODnetWCS/},
}
Warning messages:
1: In citation(package = "EMODnetWCS") :
no date field in DESCRIPTION file of package ‘EMODnetWCS’
2: In citation(package = "EMODnetWCS") :
could not determine year for ‘EMODnetWCS’ from package DESCRIPTION file
Interesting! Where is that meta$Date
coming from??
sorry for the delay!
it comes from the DESCRIPTION file that is in find.package("EMODnetWCS")
.
For instance for a package I installed from CRAN there is a date file.path(find.package("anytime"), "DESCRIPTION") |> file.edit()
Solved manually for now by installing from GitHub using pak
and then rendering README but needs a longer term approach.
I also tried adding a date into DESCRIPTION
but, while that is being picked up by codemeta.json
, it still doesn't work in citation()
when package is installed locally through source
I'm trying recreate here:
https://github.com/EMODnet/EMODnetWCS/blob/691bb8658c0c4004e5b0f91326bbd0dc1e61ff23/inst/CITATION#L1-L12
the citation generating approach in
EMODnetWFS
by @maelle:https://github.com/EMODnet/EMODnetWFS/blob/c1ac54a25d91537bb57a94438fa6e9a41528bd9e/inst/CITATION#L1-L13
However, it's not picking up a Date:
which makes sense in this case as it's not included in the
EMODnetWCS
DESCRIPTION
file: https://github.com/EMODnet/EMODnetWCS/blob/691bb8658c0c4004e5b0f91326bbd0dc1e61ff23/DESCRIPTION#L1-L49A
datePublished
field hasn't ended up in thecodemate.json
file either. https://github.com/EMODnet/EMODnetWCS/blob/691bb8658c0c4004e5b0f91326bbd0dc1e61ff23/codemeta.json#L305-L320The odd thing is that is IS being picked up in
EMODnetWFS
Created on 2022-09-16 by the reprex package (v2.0.1)
even though there is no
Date
field in it'sDESCRIPTION
file: https://github.com/EMODnet/EMODnetWFS/blob/c1ac54a25d91537bb57a94438fa6e9a41528bd9e/DESCRIPTION#L1-L61There is however a
datePublished
field in theEMODnetWFS
codemeta.json
! https://github.com/EMODnet/EMODnetWFS/blob/c1ac54a25d91537bb57a94438fa6e9a41528bd9e/codemeta.json#L392-L413I'm trying to figure out where
meta$Date
data is coming from ininst/CITATION
script: https://github.com/EMODnet/EMODnetWFS/blob/c1ac54a25d91537bb57a94438fa6e9a41528bd9e/inst/CITATION#L1and how a
datePublished
field ended up in theEMODnetWFS
codemeta.json
. Any ideas @maelle ?