I am trying to import data using read_csv function in readr package in R but it is giving me following error:
Error in app$vspace(new_style$margin-top %||% 0) : attempt to apply non-function
my code is as follows:
library(tidyverse)
library(dslabs)
library(readr)
path <- system.file("extdata", package="dslabs")
filename <- file.path(path, "fertility-two-countries-example.csv")
wide_data <- readr::read_csv(filename)
read.csv function works here but I need the data in form of tibble which can be achieved by using read_csv