Error in rmarkdown when run to get pdf file.

Hi guys
I have a rmarkdown file the when run it to get pdf exit, give me an error.
I update tinytex package and tlgm but get this error.

tlmgr: Local TeX Live (2020) is older than remote repository (2021).
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
See https://tug.org/texlive/upgrade.html for details.
! LaTeX Error: File `zref-abspage.sty' not found.

! Emergency stop.
<read *> 

Error: LaTeX failed to compile 1.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See 1.log for more info.
In addition: Warning messages:
1: In has_crop_tools() : 
Tool(s) not installed or not in PATH: pdfcrop
-> As a result, figure cropping will be disabled.
2: In system2("tlmgr", args, ...) :
  running command ''tlmgr' search --file --global '/zref-abspage.sty'' had status 1
Execution halted

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.