You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I replaced Ubuntu 20.04 with Fedora 37 on my laptop (clean install, 16 GB RAM) to follow my lab's standard and, curiously, readr doesn't work with a 6.7 GB csv file in this specific case (it crashes RStudio). What can explain this? readr worked with Ubuntu.
library(archive)
url<-"https://www.usitc.gov/data/gravity/itpd_e/itpd_e_r02.zip"zip<- gsub(".*/", "", url)
if (!file.exists(zip)) {
try(download.file(url, zip, method="wget", quiet=T))
}
if (!length(list.files(getwd(), pattern="ITPD_E_R02\\.csv")) ==1) {
archive_extract(zip, dir= getwd())
}
# this will crash RStudio# trade <- readr::read_csv("/ITPD_E_R02.csv")# this won'ttrade<-data.table::fread("/ITPD_E_R02.csv")
free memory
$ free -m
total used free shared buff/cache available
Mem: 15699 4332 1106 1032 10259 9957
Swap: 8191 9 8182
As I explained on https://stackoverflow.com/questions/75657380/readr-vs-data-table-different-results-on-fedora?noredirect=1#comment133483471_75657380
I replaced Ubuntu 20.04 with Fedora 37 on my laptop (clean install, 16 GB RAM) to follow my lab's standard and, curiously,
readr
doesn't work with a 6.7 GB csv file in this specific case (it crashes RStudio). What can explain this?readr
worked with Ubuntu.free memory
session info
The text was updated successfully, but these errors were encountered: