Skip to content

css argument of html_document_base doesn't work with scss/sass files when runtime: shiny #2447

Closed

Description

@cpsievert

Seemingly for the same reason as #2443 (that is, when runtime: shiny, html_document_base() gets invoked in a temporary directory)

---
title: "Title"
runtime: shiny
output:
  html_document:
    css: styles.scss
    theme: darkly
---

### Another title
body {background-color: purple;}

Which will generate the following error:

Error in sass::sass_file: Could not find file: 'styles.scss' in dir: 
  /private/var/folders/t8/jxw4bftj35g15fcb6m4mfbc80000gn/T/Rtmpg4LF0x

Activity

  1. cderv commented on Jan 19, 2023

    @cderv
    Collaborator

    Thanks for the report. Will you look into this ? Or do you want me to ?

  2. cpsievert commented on Jan 19, 2023

    @cpsievert
    ContributorAuthor

    I'm slowly making some progress on this, I hope to have a PR for you by tomorrow.

  3. added a commit that references this issue on Jan 20, 2023
    9541eff
  4. NaturallyAsh commented on Apr 5, 2023

    @NaturallyAsh

    Hello. Any updates on this issue? I'm getting the same error when adding my scss file to the css argument. I am using the learnr package, so runtime is shiny_prerendered.

  5. cderv commented on Apr 6, 2023

    @cderv
    Collaborator

    I'll work on rmarkdown very soon. Sorry for the delay. Related PR should be merged soon

  6. github-actions commented on Nov 15, 2023

    @github-actions

    This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

  7. locked as resolved and limited conversation to collaborators on Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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