-
Notifications
You must be signed in to change notification settings - Fork 46
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
Reproducible bibliographic references #128
Comments
I think you get the title best with:
url to data you can get with identifier. But I think a more user friendly link could be: Hope, this helps. |
Yes, I came to the same conclusion. I am just wondering if there are exceptions to the https://appsso.eurostat.ec.europa.eu/nui/show.do?dataset=sbs_na_dt_r2&lang=en link. So far I have not seen data that would not open this way, and in this case the task is very easy. I'll create a pull request later the week. |
Cool idea.
Then you can do such things:
|
Beautiful. How about replacing "toBibtex" argument with "format" (or similar)? This would then become: |
Very nice ,much simpler, than I thought, I was trying to figure out how the url changes in the interactive data viewer, but your solution is far better and more elegant. I'd probably add optional keywords, and the url date, where keywords can be a parameter of the function as a vector, or have some default like c("Eurostat", "statistics", "dataset")
I know that the urldate is superfluous logically, but may be a requirement in many formatting guides.
to the bibentry. |
My take on the issue. This would depend on the rOpenSci package RefManageR, but creates a Biblatex output that can be attached to a journal article or bookdown book immediately, or imported to Zotero. My only concern is the last comma after the last metadata field, I don't know if it will cause any issue. Any further comments? Compared to @pbiecek 's function this adds three extras,
|
I created a pull request, with the new function, documentation and unit tests. However, if you can, take a look at my last comment, the superflous comma. |
Thanks, excellent. Let us try to get this merged asap. |
It seems to me that: |
I just tried with default is 'Biblatex', alternatives are 'bibentry' or 'Bibtex' and worked for me on a Window computer well. Can you somehow reproduce the error? |
Hi,
@misc{t2020_rk310_21-03-2019, |
Indeed, there is a line left that is hardcoding the data. Sorry. I will correct a.s.a.p and create a pull request. |
@pompm thanks for the report! Bibtex and Biblatex entries are anyway can be tricky, let me know if you have other issues using them. |
Can we close this one? |
Yes, we can close this. |
I just got info from CRAN that RefManageR will be deprecated and removed from CRAN on 2020-10-21 due to lack of maintenance. If this will happen, this part of eurostat R pkg will go defunct. We can either remove this functionality, or implement the necessary parts directly in our pkg. The RefManageR pkg is with GPL2/3 license, therefore we could not borrow the code from there directly without changing the eurostat R pkg license. |
@antaldaniel if you have an opinion about this it would be good to hear - the DL is Wednesday (Oct 21). However I just noticed that RefManageR allows also BSD3 license (we have BSD2). I think BSD2 allows us to switch to BSD3 (or even GPL2/3). I think will just switch to BSD3 and copy the missing functions in our (eurostat) package before RefManageR is deprecated, and then inform all authors about the change. If anyone objects, we can switch back to BSD2 license and remove bib functionality. |
I am thinking on a way how to create .bib files for the data that is downloaded by the eurostat package. I have a code that downloads my most important data, and updates my bib files that cite the data, i.e. data accessed, but it not a fully general solution.
I use the following template and add this to a collected bib. file
`@misc{eurostat_sbs_na_dt_r2_year,
title = {Annual detailed enterprise statistics for trade {(NACE Rev. 2 G)} [sbs_na_dt_r2]},
}`
I change the statistics product code sbs_na_dt_r2 in the unique identifier, use the current date for urldate, replace the year with the year component of the download date.
I think that the title could be created by
get_eurostat_dic
, but I have no idea how to create an url to the data. I wonder if there is any metadata directory that may be used to create a permanent reference either to a reproducible download address or metadata description?I think that in the spirit of truly reproducible research, it would be reasonable not only to update Eurostat statistics in an RMarkdown document, but also update the details of the .bib file. I had a misfortune that Eurostat removed completely an earlier data product, and I think that a full documentation would be good.
Of course, I just used a simple bib template from Zotero, but maybe using some Datacite metadata best practices could help. I'd gladly create a new function if somebody can put me into direction with the url issue.
The text was updated successfully, but these errors were encountered: