Ronggui / RQDA

R-based Qualitative Data Analysis
http://rqda.r-forge.r-project.org
Other
113 stars 31 forks source link

addFilesFromDir() imports only the first line of each file #12

Closed jalvesaq closed 7 years ago

jalvesaq commented 8 years ago

When I run addFilesFromDir("/path/to/txt_files") I get the warning:

There were 50 or more warnings (use warnings() to see the first 50)

The warnings are all the same:

In if (Encoding(content) != "UTF-8") { ... : the condition has length > 1 and only the first element will be used

And only the first line of each file is imported.

I successfully imported the files with the commands:

setwd("/path/to/txt_files")
Files <- dir()
for(f in Files) RQDA:::ImportFile(f)
RQDA:::FileNamesUpdate()

I am using R 3.3.2 on Linux (Ubuntu 16.10).

Ronggui commented 7 years ago

it is fixed now.

cownr10r commented 7 years ago

This is not yet fixed. I'm still having problems. When I upload with the following code, I get NA populating the document window.

R> setwd("/path/to/txt_files") R> Files <- dir() R> for(f in Files) RQDA:::ImportFile(f) R> RQDA:::FileNamesUpdate()

I've also tried:

R> addFilesFromDir(dir, pattern = "*.txt$")

But this only imports names file names. I've downloaded the latest changes in RQDA from

https://github.com/Ronggui/RQDA

and I'm on a Mac, and finally, i'm using R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"

Please help. Thanks!

cownr10r commented 7 years ago

Dear Ronggui,

RQDA is working well right now. Thank you very much!

Mario