Skip to content

think we need this change to deal with local (not downloaded) zip files - #172

Merged
kbenoit merged 9 commits into
masterfrom
quantedaGui
May 24, 2016
Merged

kbenoit merged 9 commits into
masterfrom
quantedaGui

Conversation

@pnulty

@pnulty pnulty commented May 23, 2016

Copy link
Copy Markdown
Contributor

Note this branch goes not include an actual GUI, it's just a small change I needed to help with prototyping a shiny app. First, flocal variable was not set if the file was originally local rather than a http download. I'v fixed this part. Then, it should be noted that this expects for the txt files to be in the top level of the zip. If there is an additional folder when unzipped it wouldn't work for me. I

@adamobeng

Copy link
Copy Markdown
Contributor

Hi @pnulty, I noticed this too. I think we're going to have to make some API decisions to cover the subdirectories case, as well as non-txt files inside zip archives.

This patch works for the current use-case, but it doesn't handle nested subdirectories. Also, I think it depends on a bug in glob2rx which allows wildcards to match directory separators (this will be going away soon).

Could you add some tests which describe the behaviour you expect, so that I can test my new implementation against them?

@pnulty

pnulty commented May 23, 2016 •

Copy link
Copy Markdown
Contributor Author

Thanks Adam, I added a simple testthat for the offline case. This should work for offline import when it's just a simple zip with txt files in the top level. For my use case I just needed to get this working offline and offline, working with nested directories would be good in future.

adamobeng added 2 commits May 23, 2016 20:36
Signed-off-by: Adam Obeng <github@binaryeagle.com>
Signed-off-by: Adam Obeng <github@binaryeagle.com>
@adamobeng

Copy link
Copy Markdown
Contributor

lgtm!

@kbenoit
kbenoit merged commit aed4264 into master May 24, 2016
kbenoit added a commit that referenced this pull request May 24, 2016
Merge branch 'quantedaGui'

# Conflicts:
#	tests/testthat/testTextfile.R
@kbenoit

kbenoit commented May 24, 2016

Copy link
Copy Markdown
Collaborator

Thanks Paul, Adam

@kbenoit
kbenoit deleted the quantedaGui branch May 24, 2016 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants