Tinytex: What about exported is_tinytex and check_installed ?

Created on 21 Jan 2021  路  7Comments  路  Source: yihui/tinytex

We advice to use them : https://github.com/rstudio/rticles/pull/364#discussion_r561036426

and I often use "revtex4-1" %in% tinytex::tl_pkgs() to check what I could do with tinytex:::check_installed("revtex4-1")

So why not ?

Most helpful comment

When you feel tired, you may do that, since it doesn't require much brain power :)

The two functions have been documented and exported now.

All 7 comments

I was just too lazy to document them :) For is_tinytex(), it is also a little hackish:

any(grepl(
    '\\W[.]?TinyTeX\\W',
    readLines(file.path(root, 'texmf-dist/web2c/fmtutil.cnf'), n = 1)
))

I guess it should work for 99.999% of cases, though.

Anyway, I'll export and document them.

I can also do it :)

I open issue here mainly to share ideas with you, but feel free to say ok, then assign me 馃槃
Especially for those were lazyness win 馃槈

BTW check_installed is the most useful.

It's only a 10-min task, so I'm happy to do it. I have more boring tasks that I feel definitely too lazy to do. For example, I have been hoping to change the test syntax from assert(cond1, cond2) to assert({ (cond1); (cond2) }) in all packages. You may start with knitr: https://github.com/yihui/knitr/tree/master/tests/testit

Ok ! I can do that on the long run. :)

When you feel tired, you may do that, since it doesn't require much brain power :)

The two functions have been documented and exported now.

Yes.

Was this page helpful?
0 / 5 - 0 ratings