0
install.packages('haven')
library(haven)
hsb1 <- read_sas("C:\\Users\\...\\hsb1.sas7bdat")

however, it does not work, please see the message below:

Error in loadNamespace(name) : there is no package called ‘readr’

My question: how to fix that?
BTW, no SAS installed in my PC, does this reason cause the error?

Marco Sandri
  • 21,986
  • 7
  • 43
  • 51
jstmj2002
  • 21
  • 1
  • 3

0 Answers0