adv-r
adv-r copied to clipboard
Advanced R: a book
Tested with R 4.0.2, no copy was made when using list.
Hello! I think `paste0()` is being misused in the birthday example. `paste0` is literally `paste()` with `sep=""`; why use it and then manually put blanket spaces at the strings? I...
In section 5.3.2, it is said that `repeat` is more flexible than `while`. This doesn't make sense to me. To rewrite `repeat` in terms of `while`, one can simply write...
Slight change of language to say that functions generated by `void_tag()` error when given "child tags", rather than "unnamed tags" and that those child tags are captured by "unnamed dots"....
The `boot_model()` function does not have a `model` argument. It does have `formula`. https://github.com/hadley/adv-r/blob/1ab83672ad077400b842938804a3773f4279115c/Function-factories.Rmd#L554-L563
Near the end of the control flow chapter, I think the intention was to say *more* instead of *less*
I may be missing a deeper point here, but it seems simpler for `chatty()` to use `message()` instead of `cat()` and call it before the processing begins?
In 22.3 ("Locating Errors"), there is sample code given to trigger the console options of "Show Traceback" and "Rerun with Debug". When I ran that code, I got the error,...
Hiya - just had a question with respect to the usage of "function operator" as a term within the book. I'm curious about how it's different from a [decorator](https://en.wikipedia.org/wiki/Decorator_pattern) which...