Skip to content

Articles images not rendering #1027

@thierrygosselin

Description

@thierrygosselin

Hi,

I'm using PNG images inside my vignettes, because it's too long to knit.
The vignettes are rendered correctly with images showing.

Problem
The articles on the website, built from the vignettes, are not showing any images.

Additional info

  • I'm not using fig.path anywhere.
  • I'm building the site with pkgdown::build_site()
  • I have tried using resources_files: and the names of the images inside the YAML header: no success

Link to the vignette html, and here the link to my package article for the same vignette.

Looking at the html files revealed that the absolute link, on my hard drive, is used, for reason beyond me.

The html vignette: ok

<p><img src="data:image/png;base64,iVBORw0KGgoAAAAN [... break ...] BAAAEEE" /> By default, the figure display the range of the data, to change this behavior and see the full range for the y axis:</p>

The articles: not ok

<p><img src="../../../../../Mobile%20Documents/com~apple~CloudDocs/r_packages/assigner/vignettes/assignment_thl_test1.png"> By default, the figure display the range of the data, to change this behavior and see the full range for the y axis:</p>

Is it a bug or something that I'm doing wrong ?
Thanks
Thierry

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