Following up on the initial RcppSpdlog 0.0.1 release earlier this week, we are pumped to announce release 0.0.2. It contains upstream version 1.8.0 for spdlog which utilizes (among other things) a new feature in the embedded fmt library, namely completely automated formatting of high resolution time stamps which allows for gems like this (taken from this file in the package and edited down for brevity):
What we see is all there is: One instantiates a
stopwatch object, and simply references it. The rest, as they say, is magic. And we get
toc alike behaviour in modern C++ at essentially no cost us (as code authors). So nice. Output from the (included in the package) function
exampleRsink() (again edited down just a little):
We see that the two simple logging instances come 10 and 18 microseconds into the call.
The NEWS entry for this release follows.
Changes in RcppSpdlog version 0.0.2 (2020-09-17)
Upgraded to upstream release 1.8.0
Switched Travis CI to using BSPM, also test on macOS
Added 'stopwatch' use to main R sink example
The only sour grapes, again, are once more over the CRAN processing. And just how 0.0.1 was delayed for no good reason for three weeks, 0.0.2 was delayed by three days just because … well that is how CRAN rules sometimes. I’d be even more mad if I had an alternative but I don’t. We remain grateful for all they do but they really could have let this one through even at one-day update delta. Ah well, now we’re three days wiser and of course nothing changed in the package.