dbosak01 / libr

An R package to create data libraries and data dictionaries.
27 stars 1 forks source link

Error creating libname for CSV #162

Closed dbosak01 closed 4 months ago

dbosak01 commented 4 months ago

Get this:

Error in if (tolower(ext) == "csv") { : the condition has length > 1

when running this:

libname(dat, "C:/packages/Testing/incyte/Vicky", engine = "csv", quiet = TRUE)

Not sure why yet.

dbosak01 commented 4 months ago

It's because there is a file name with two dots, and getExtension() is returning both as extensions. Causing downstream code to fail.