0

I am using R version 3.6.0 and tried installing "sink" but it says it is no longer available.

Is this package no longer used? I am looking for a way of making log files for a .Rnw script which uses knitr.

I have seen that some people use just cat() and some use sink() and cat() together. What is the best recommended way of making log files in R? Is there an alternative to sink()?

Many thanks.

mf94
  • 439
  • 4
  • 19

1 Answers1

0

As mentioned by @patL, sink is not a package, it comes standard with {base}. Just use it, no packages need to be installed. :)

You can refer to the following questions about the sink() function and the help page for sink for some additional usage ideas.

dooboze
  • 81
  • 8