read_csv doesn't work in R studio

install.packages("tidyverse")
library(tidyverse)

gun_violence <- read_csv("Gun_Violence_Data.csv")

I got the error:
Error in read_csv("Gun_Violence_Data.csv") :
could not find function "read_csv"

I loaded tidyverse, so this should work. Can anyone tell me why?

Not without seeing any messages from library(tidyverse)

But does

readr::read_csv("Gun_Violence_Data.csv")

Work?

Check the capitalization or spaces and all that jazz . that is usually the problem with errors like that.

Thank you guys. I decided to import data instead of using read function.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.