Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

Images not displayed in resulting pdf #2

@Aaron-M

Description

@Aaron-M

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:

install.packages('lubridate')
install.packages('Hmisc')

*Resources from http://demo.ckan.org/dataset/nz-bounding-box-test :
af873397-3b5a-4061-861a-cbf76881f0b9
a0904bbb-e41c-4c51-8b44-72d72da2b701

library(ckanr)
# Save a copy of this file as "ckan_secret.R" in the same folder.

# Your default CKAN instance. Absolutely no trailing slash allowed.
CKAN = "http://demo.ckan.org"

# Your write-permitted API key for MY_CKAN_URL
API_KEY = "THE-API-KEY"

# A fallback resource ID of an image in MY_CKAN_URL
default_resource_id <- "5c69bc4e-c4d4-4939-879b-754ff5da2a50"

# Configure ckanr defaults
ckanr::ckanr_setup(url=CKAN, key=API_KEY)

ckan_info()

Edited by florianm: removed your API key, hope that's ok ;-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions