rstudio / pagedown

Paginate the HTML Output of R Markdown with CSS for Print
https://pagedown.rbind.io
Other
892 stars 128 forks source link

Problem with `chrome_print()`, PDF #242

Closed bttomio closed 3 years ago

bttomio commented 3 years ago

Hello,

I don't know what I'm doing wrong here but the following message is appearing:

Output created: index.html
Warning: A runtime exception has occured while executing JavaScript
  Runtime exception message:
    ReferenceError: $ is not defined
    at http://127.0.0.1:5903/index_files/kePrint-0.0.1/kePrint.js:1:1

It used to work fine. File is available here.

Any help is very welcome. Thank you in advance!

bttomio commented 3 years ago

Ok, I managed to correct the issue by inserting the complete directory in input. Sorry for creating this issue.

cderv commented 3 years ago

No worries. Glad you found the issue - As you saw we did not really found time to look into it 😓

AGSCL commented 2 years ago

Did you find out how to correct this?, I tried with: pagedown::chrome_print("E:/Mi unidad/Alvacast/SISTRAT 2019 (github)/pres_2022/pres_2022_sf_false.html", output="pres_2022_3.pdf")

and

pagedown::chrome_print(gsub(".Rmd",".html", rstudioapi::getSourceEditorContext()$path), output="pres_2022_3.pdf")

marilynlong commented 1 year ago

Could you please elaborate on how you fixed this error? I've tried adding in the input file path and it did not work.

labreumaia commented 7 months ago

I also have this problem and it was not solved by adding the full pathname.