Open Aaron-M opened 8 years ago
Having a quick look at it, there's a few particular fields that our CKAN has, but demo.ckan.org doesn't have (last_updated_on
, citation
). They are read in ckan.R and used in the Latex macro mpa. Our CKAN uses a custom ckanext-scheming dataset schema that hard-codes our favourite metadata fields (among them the ones we needed for the project leading up to CKAN o' Sweave), and disables CKAN's custom "extra" fields.
We need a fallback here in case these custom fields don't exist!
I hope to get a working example running again in the next days.
We use CKAN o' Sweave on a Ubuntu 14.04 VM running RStudio Server and texlive-full.
Also thanks for the heads-up on the missing R packages lubridate and Hmisc!
Last heads-up, there was some work done on the R package ckanR which I'll need to double-check/reconcile with CKAN o' Sweave.
I have updated the ckan_res() refernces in all of the files and the code now runs without 404 errors.
I tried initially with https://datahub.io/ and got a pdf to be created, however none of the images came through, and there were a lot of warnings/errors. Whilst it was compiling it found some missing latex components which I subsequently added as we worked through, and eventually the pdf was produced (without any images - an error message in place).
I then changed the ckan_secret.R to use files on http://demo.ckan.org and used some small png files* (I wondered if the ones on datahub were too large). That didn't make a difference, so I thought I would try a different latex installation (Originally I was using TexLive (a custom install), then I changed to MikTex). A lot of the errors and warnings I got using TexLive have gone, but now the pdf fails to be created, and I get 1 warning (very large).
What latex installation do you use/recommend?
I reverted to a full install of TexLive, and the pdf file is now generated, however the images are missing, and some of the data that is attempted to be pulled from CKAN is also missing (e.g. last updated).
I've attached the pdf generated, and the log. report01.pdf report01.log.txt
Also, just to note that in the Installation.R I had to add:
*Resources from http://demo.ckan.org/dataset/nz-bounding-box-test : af873397-3b5a-4061-861a-cbf76881f0b9 a0904bbb-e41c-4c51-8b44-72d72da2b701
Edited by florianm: removed your API key, hope that's ok ;-)