tinytex icon indicating copy to clipboard operation
tinytex copied to clipboard

Windows system error on reinstall_tinytex

Open sambweber opened this issue 3 years ago • 3 comments

Hi everyone,

I recently received a prompt when knitting an RMarkdown document to pdf that told me that a new version of Tinytex had been released and that I should reinstall using tinytex::reinstall_tinytex, which I duly did. However it crashed midway through with the following Windows system error. I now get the same error message when trying to reinstall, install or remove it using tinytex::install_tinytex, tinytex::uninstall_tinytex.

error

Any ideas what has happened here? It seems like something has corrupted at a system level but I don't know enough about what reinstall_tinytex has executed to figure it out. I'm unable to knit anything in Markdown at the moment so I need to try and figure out a solution. tinytex::is_tinytex() returns TRUE but typing tmlgr path remove at the command line returns a 'tlmgr'not recognised error and tinytex::tlmgr_install(c("amscls")) also returns an error:

tlmgr install amscls
tlmgr update --self
Error in system2("tlmgr", args, ...) : '"tlmgr"' not found
In addition: Warning message:
In tlmgr(c("install", pkgs), usermode, ...) : 
TeX Live does not seem to be installed. See https://yihui.org/tinytex/.

It seem like tlmgr has been removed but I don't know how to get it back! I've updated my version of tinytex but it hasn't helped.

My system information is below, but I don't think this is an R version issue as I'm having problems at the command line too.

Thanks in advance for any suggestions,

Sam


R version 4.1.2 (2021-11-01) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1, RStudio 2021.9.2.382

Locale: LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252 LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C LC_TIME=English_United Kingdom.1252

Package version: graphics_4.1.2 grDevices_4.1.2 stats_4.1.2 tinytex_0.39 tools_4.1.2 utils_4.1.2 xfun_0.29


By filing an issue to this repo, I promise that

  • [X ] I have fully read the issue guide at https://yihui.org/issue/.
  • [X ] I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('tinytex'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/tinytex').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • [X ] I have learned the Github Markdown syntax, and formatted my issue correctly.

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

sambweber avatar May 20 '22 14:05 sambweber

Can you try to see if there is something left in the folder ?

tinytex::tinytex_root()

Should be pointing into %APPDATA%/TinyTeX, a path that you should be able to enter in your file explorer. If you have still one, you could deleted it completlety. reinstall_tinytex() will uninstall then install (and restore package).

Uninstalling is really removing from PATH, and then cleaning some part. Can you run ?

dir.exists(d <- path.expand("~/.TinyTeX"))

Once the folder in APPDATA is removed, you could try running install_tinytex() again

cderv avatar May 20 '22 14:05 cderv

Thanks for the quick reply.

I checked tinytex::tinytex_root() and it pointed to an AppData folder as you say "C:\\...\\AppData\\Roaming\\TinyTeX".

I went and deleted this folder and ran install_tinytex() but it threw the same No Disk error. I can actually get the install to complete if I continually cancel the error message, but when I try and knit the error continually pops up.

dir.exists(d <- path.expand("~/.TinyTeX")) returns FALSE.

sambweber avatar May 20 '22 15:05 sambweber

I don't know about the error. Does not seem related directly to one of the tools in the stack. If I google the issue, I found this could be related to disk error on the system. See https://answers.microsoft.com/en-us/windows/forum/all/windows-no-disk-error-message-c0000013/

Is this happening only when knitting ? and only with R ?

does rmarkdown::render in R console works instead of using R Studio ?

cderv avatar May 20 '22 20:05 cderv

As there has been no activity since may I am closing. Please do reopen if this is still an issue for you. Thanks

cderv avatar Aug 22 '22 07:08 cderv