efficientR icon indicating copy to clipboard operation
efficientR copied to clipboard

browse Vignettes

Open sciencecasey opened this issue 4 years ago • 7 comments

I installed the package as describe in section 1.7. When I tried to use the browseVignettes() line, it said no package called efficient. I then tried attaching the package by calling library(). I had output that said that if I wanted vignettes, to set vignettes = TRUE. Thus, I tried reinstalling by devtools line suggested and when I did so, it didn't build. Then it told me to set force = TRUE to force the build, however the vignette build still failed with teh warning that the YAML metadata didn't match. Screen Shot 2021-03-22 at 6 22 59 PM Screen Shot 2021-03-22 at 6 23 29 PM

sciencecasey avatar Mar 23 '21 01:03 sciencecasey

Thanks for the report @sciencecasey. I'm not sure what the cause is. Any ideas @csgillespie ? Cheers.

Robinlovelace avatar Mar 23 '21 09:03 Robinlovelace

Not sure what's happening. @sciencecasey Can you install the suggested missing packages and try again?

csgillespie avatar Mar 23 '21 09:03 csgillespie

Hi @csgillespie I'm sorry but I don't know what you mean. This was my third attempt to install the efficient library and it's installed other than the vignettes. I started a new R session and the same errors occur, only at the Vignette level.

I uninstalled the package with "remove.packages()" and then reinstalled with the full vignette = TRUE and got the error again. Is there another location to view the vignettes, as they don't appear to be working on my build? (For reference, I'm on R Version 4.0.3 and RStudio 1.4.1103 on a Mac 10.14.6 OS.

sciencecasey avatar Mar 23 '21 19:03 sciencecasey

@sciencecasey In the error messages, it states some missing packages, e.g. benchmarkme, pryr,

Would you install them (and any others) first?

Your version of R and RStudio should be fine. But I don't have a Mac.

csgillespie avatar Mar 27 '21 17:03 csgillespie

It may also be because of recent updates on CRAN creating a difference between binary and source versions. Sounds like a package installation issue to me also. Good suggestion on another location for the vignettes though, as you'll see the project has kind of slowed down recently although I'm keen to get it moving again. Any further feedback or pull requests v. welcome.

Robinlovelace avatar Mar 27 '21 17:03 Robinlovelace

Hi @sciencecasey, there was a minor change made to this line about a year ago; you may be referencing a printed copy and not the latest revision at https://csgillespie.github.io/efficientR/introduction.html#book-resources.

Try: devtools::install_github("csgillespie/efficient", build_vignettes = TRUE, dependencies = TRUE)

engineerchange avatar Mar 28 '21 01:03 engineerchange

Hi everyone, Thank you for the responses! I was looking online at the book but apparently it was an older version. When I uninstalled and reinstalled with the line from engineerchange it worked fine! I'm looking forward to working through the book. If I see any pull request needs I would be happy to contribute. -Casey

sciencecasey avatar Mar 28 '21 21:03 sciencecasey