Skip to content
Permalink
Browse files

the unset arg of Sys.getenv() does not seem to work well on Windows

  • Loading branch information...
yihui committed Dec 5, 2017
1 parent 3e1b260 commit 0e9d6e950a1a0b90881bc54119f0cb4748512d84
Showing with 3 additions and 1 deletion.
  1. +3 −1 R/install.R
@@ -81,7 +81,9 @@ uninstall_tinytex = function() {
}

win_app_dir = function() {
Sys.getenv('APPDATA', stop('Environment variable "APPDATA" not set.'))
d = Sys.getenv('APPDATA')
if (d == '') stop('Environment variable "APPDATA" not set.')
d
}

is_tinytex = function(path = Sys.which('tlmgr')) {

0 comments on commit 0e9d6e9

Please sign in to comment.
You can’t perform that action at this time.