Open shafayetShafee opened 2 years ago
@Robinlovelace, Can I make a pull request suggesting this fix 😃?
@Robinlovelace, Can I make a pull request suggesting this fix smiley?
Yes, that would be greatly appreciated. Apologies for slow response..
@Robinlovelace, I need help with another thing, that is, which of the following approach should I follow to read the out-ice.Rds
,
out = readRDS("extdata/out-ice.Rds")
which will not work for someone, who just wants to copy code from the book and run it.
Or,
extdata_path <- "https://raw.githubusercontent.com/csgillespie/efficientR/master/extdata/"
out <- readr::read_rds(paste0(extdata_path, "out-ice.Rds"))
which will require the reader to install the readr package and this should be mentioned in the prerequisites section of the 1st chapter of the book.
Thank you 😄!
I like the 2nd option better, good point!
Code snippet from 1.6.3 Profiling contains a function
dplyr::rbind_all()
which is no longer supported the current version of dplyr package.Code snippet from book
When tried to create a dataframe from out using
rbind_all
got the following errorFix
Now
dplyr
offers bind_rows function to bind data-frames which should be used instead ofrbind_all
Please note that I am using
dplyr
version 1.0.8