hadley / r4ds

R for data science: a book
http://r4ds.hadley.nz
Other
4.59k stars 4.22k forks source link

Error in attempting to implement r4ds code #1556

Closed PananthanasZ closed 1 year ago

PananthanasZ commented 1 year ago

I am unable to access 'palmerpenguins' and 'ggthemes'. See below:

library(tidyverse)

library(palmerpenguins) Error in library(palmerpenguins) : there is no package called ‘palmerpenguins’ library(ggthemes) Error in library(ggthemes) : there is no package called ‘ggthemes’ library(palmerpenguins) Error in library(palmerpenguins) : there is no package called ‘palmerpenguins’

javacup commented 1 year ago

is it possible that you need to run the following?

install.packages("palmerpenguins") library(palmerpenguins)

In the beginning of the book, the author makes mention of the error .. and that you need to install once before loading it in every session

PananthanasZ commented 1 year ago

Yes. Apparently I failed to install the package. Thank you


Paul Zachos, PhD Director, Research and Evaluation Association for the Cooperative Advancement of Science and Education (ACASE) 110 Spring Street Saratoga Springs, NY 12866 |
@.*** | www.acase.org

On Aug 8, 2023, at 6:31 PM, javacup @.***> wrote:

is it possible that you need to run the following?

install.packages("palmerpenguins") library(palmerpenguins)

— Reply to this email directly, view it on GitHub https://github.com/hadley/r4ds/issues/1556#issuecomment-1670401726, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBY2VZOAW7YYNRHZL3B2QWLXUK43LANCNFSM6AAAAAA3HKFQBA. You are receiving this because you authored the thread.

PananthanasZ commented 1 year ago

R4ds directs me to install 'ggthemes' but I don't seem to be able to do so. See below:

library(ggthemes) Error in library(ggthemes) : there is no package called ‘ggthemes’ install.packages(ggthemes) Error in install.packages : object 'ggthemes' not found library(ggthemes) Error in library(ggthemes) : there is no package called ‘ggthemes’ install.packages(ggthemes) Error in install.packages : object 'ggthemes' not found