yihui / xfun

Miscellaneous R functions
https://yihui.org/xfun/
Other
135 stars 28 forks source link

Error in xfun::normalize_path when knit RMarkdown to HTML #79

Closed ThanhQuan23 closed 1 year ago

ThanhQuan23 commented 1 year ago

My issue is:

Error in xfun::normalize_path(path, ..., must_work = must_work, resolve_symlink = FALSE) : 
  unused argument (resolve_symlink = FALSE)
Calls: <Anonymous> -> normalize_path
Execution halted

By filing an issue to this repo, I promise that

I understand that my issue may be closed if I don't fulfill my promises.

cderv commented 1 year ago

Please update xfun package and try again.

resolve_symlink has been added in v0.36 and as you can see on CRAN, rmarkdown imports xfun >= 0.36 already.

The error is from rmarkdown calling this function in xfun with new argument (since rmarkdown 2.20). Updating rmarkdown should have updated xfun too.

Something is not ok in your update probably.

So please do update rmarkdown and if it does not install xfun, do update xfun manually.

Thanks