{"action":"reopened","issue":{"url":"https://api.github.com/repos/yihui/tinytex/issues/60","repository_url":"https://api.github.com/repos/yihui/tinytex","labels_url":"https://api.github.com/repos/yihui/tinytex/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/yihui/tinytex/issues/60/comments","events_url":"https://api.github.com/repos/yihui/tinytex/issues/60/events","html_url":"https://github.com/yihui/tinytex/issues/60","id":348556693,"node_id":"MDU6SXNzdWUzNDg1NTY2OTM=","number":60,"title":"`r_texmf_path()` did not return correct result","user":{"login":"hongyuanjia","id":20545387,"node_id":"MDQ6VXNlcjIwNTQ1Mzg3","avatar_url":"https://avatars3.githubusercontent.com/u/20545387?v=4","gravatar_id":"","url":"https://api.github.com/users/hongyuanjia","html_url":"https://github.com/hongyuanjia","followers_url":"https://api.github.com/users/hongyuanjia/followers","following_url":"https://api.github.com/users/hongyuanjia/following{/other_user}","gists_url":"https://api.github.com/users/hongyuanjia/gists{/gist_id}","starred_url":"https://api.github.com/users/hongyuanjia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hongyuanjia/subscriptions","organizations_url":"https://api.github.com/users/hongyuanjia/orgs","repos_url":"https://api.github.com/users/hongyuanjia/repos","events_url":"https://api.github.com/users/hongyuanjia/events{/privacy}","received_events_url":"https://api.github.com/users/hongyuanjia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-08T02:55:55Z","updated_at":"2018-08-08T21:26:42Z","closed_at":null,"author_association":"NONE","body":"This seems to be similar with #22 . `r_texmf()` did not work for me even using the GitHub version. This led to the error when compiling package PDF manual which complained about missing `Rd.sty`.\r\n\r\n```r\r\ntinytex::r_texmf()\r\n#> tlmgr conf auxtrees add '/usr/share/R//texmf'\r\n#> tlmgr: already registered auxtree: /usr/share/R//texmf\r\n#> tlmgr: action conf returned an error; continuing.\r\n#> tlmgr: An error has occurred. See above messages. Exiting.\r\n```\r\n\r\nWhat caused this error is that [`tinytex:::r_texmf_path()`](https://github.com/yihui/tinytex/blob/446f17c1cf5fc6a33720087bacca9468f15b1642/R/tlmgr.R#L175) did not return correct path. The correct path should be `/usr/share/texmf` on my computer.\r\n\r\n```r\r\ntinytex:::r_texmf_path()\r\n#> [1] \"'/usr/share/R//texmf'\"\r\n```\r\n\r\n```bash\r\nls -la /usr/share/R\r\n# total 44K\r\n# drwxr-xr-x  10 root root 4.0K 8月   1 23:21 .\r\n# drwxr-xr-x 226 root root 4.0K 8月   8 08:58 ..\r\n# drwxr-xr-x   2 root root 4.0K 8月   1 23:21 dictionaries\r\n# drwxr-xr-x   2 root root 4.0K 8月   1 23:21 encodings\r\n# drwxr-xr-x   2 root root 4.0K 8月   1 23:21 java\r\n# drwxr-xr-x   2 root root 4.0K 8月   1 23:21 licenses\r\n# drwxr-xr-x   2 root root 4.0K 8月   1 23:21 make\r\n# drwxr-xr-x   2 root root 4.0K 8月   1 23:21 R\r\n# drwxr-xr-x   3 root root 4.0K 8月   1 23:21 Rd\r\n# drwxr-xr-x   2 root root 4.0K 8月   1 23:21 sh\r\n```\r\n\r\nI am using [Manjaro Linux (17.1.11)](https://manjaro.org/) and installed R using `pacman -S R`. I did not know if this is related to some specific Linux distro which did not put the `texmf` folder in the normal position.\r\n\r\nCurrent workaround is to manually add R's texmf using `tlmgr_conf()`:\r\n\r\n```r\r\ntinytex::tlmgr_conf(c(\"auxtrees\", \"add\", \"/usr/share/texmf\"))\r\n#> tlmgr conf auxtrees add /usr/share/texmf\r\n```\r\n\r\nAfter that, I can compile package PDF manual successfully.\r\n\r\nBelow is my session info:\r\n\r\n```r\r\ndevtools::session_info('tinytex')\r\n#>  setting  value                       \r\n#>  version  R version 3.5.1 (2018-07-02)\r\n#>  system   x86_64, linux-gnu           \r\n#>  ui       X11                         \r\n#>  language (EN)                        \r\n#>  collate  en_US.UTF-8                 \r\n#>  tz       Asia/Shanghai               \r\n#>  date     2018-08-08                  \r\n#> \r\n#>  package * version date       source                        \r\n#>  tinytex   0.6.6   2018-08-08 Github (yihui/tinytex@446f17c)\r\n#>  tools     3.5.1   2018-07-02 local                         \r\n#>  xfun      0.3     2018-07-06 CRAN (R 3.5.1)                \r\n```"}}
{"actor":{"display_login":"yihui"}}