Displaying 13 results from an estimated 13 matches for "archive_extract".
2017 Jul 15
2
readLines without skipNul=TRUE causes crash
...ot;)
file_folder <- file.path( tempdir() , "file_folder" )
tf <- tempfile()
# large download! cachaca saves on your local disk if already downloaded
lodown::cachaca( '
http://download.inep.gov.br/microdados/microdados_enem2009.rar' , tf , mode
= 'wb' )
archive::archive_extract( tf , dir = normalizePath( file_folder ) )
unzipped_files <- list.files( file_folder , recursive = TRUE , full.names =
TRUE )
infile <- grep( "DADOS(.*)\\.txt$" , unzipped_files , value = TRUE )
# works
R.utils::countLines( infile )
# works with warning
my_file <- readLines(...
2017 Jul 15
4
readLines without skipNul=TRUE causes crash
...t?
the lodown package can be removed from my example.. it is just for file
download cacheing, so `lodown::cachaca` can be replaced with
`download.file` my current example requires a huge download, so sort of
painful to repeat but i'm pretty confident that's not the issue.
the archive::archive_extract() function unzips a (probably corrupt) .RAR
file and creates a text file with 80,937 lines. this file is 4GB:
> file.size(infile)
[1] 4078192743
i am pretty sure that nearly all of that 4GB is contained on a single line
in the file. here's what happens when i create a file conne...
2017 Jul 15
0
readLines without skipNul=TRUE causes crash
...be removed from my example.. it is just for file
> download cacheing, so `lodown::cachaca` can be replaced with
> `download.file` my current example requires a huge download, so sort of
> painful to repeat but i'm pretty confident that's not the issue.
>
>
> the archive::archive_extract() function unzips a (probably corrupt) .RAR
> file and creates a text file with 80,937 lines. this file is 4GB:
>
> > file.size(infile)
> [1] 4078192743 <(407)%20819-2743>
>
>
> i am pretty sure that nearly all of that 4GB is contained on a single line
> in...
2017 Jul 15
0
readLines without skipNul=TRUE causes crash
...r() , "file_folder" )
>
> tf <- tempfile()
>
> # large download! cachaca saves on your local disk if already downloaded
> lodown::cachaca( '
> http://download.inep.gov.br/microdados/microdados_enem2009.rar' , tf , mode
> = 'wb' )
>
> archive::archive_extract( tf , dir = normalizePath( file_folder ) )
>
> unzipped_files <- list.files( file_folder , recursive = TRUE , full.names =
> TRUE )
>
> infile <- grep( "DADOS(.*)\\.txt$" , unzipped_files , value = TRUE )
>
> # works
> R.utils::countLines( infile )
>
>...
2017 Jul 15
3
readLines without skipNul=TRUE causes crash
...le.. it is just for file
>> download cacheing, so `lodown::cachaca` can be replaced with
>> `download.file` my current example requires a huge download, so sort of
>> painful to repeat but i'm pretty confident that's not the issue.
>>
>>
>> the archive::archive_extract() function unzips a (probably corrupt) .RAR
>> file and creates a text file with 80,937 lines. this file is 4GB:
>>
>> > file.size(infile)
>> [1] 4078192743 <(407)%20819-2743>
>>
>>
>> i am pretty sure that nearly all of that 4GB is contain...
2017 Jul 16
3
readLines without skipNul=TRUE causes crash
...oad cacheing, so `lodown::cachaca` can be replaced with
>>>> `download.file` my current example requires a huge download, so sort of
>>>> painful to repeat but i'm pretty confident that's not the issue.
>>>>
>>>>
>>>> the archive::archive_extract() function unzips a (probably corrupt) .RAR
>>>> file and creates a text file with 80,937 lines. this file is 4GB:
>>>>
>>>> > file.size(infile)
>>>> [1] 4078192743 <(407)%20819-2743>
>>>>
>>>>
>>>>...
2017 Jul 15
0
readLines without skipNul=TRUE causes crash
...>>> download cacheing, so `lodown::cachaca` can be replaced with
>>> `download.file` my current example requires a huge download, so sort of
>>> painful to repeat but i'm pretty confident that's not the issue.
>>>
>>>
>>> the archive::archive_extract() function unzips a (probably corrupt) .RAR
>>> file and creates a text file with 80,937 lines. this file is 4GB:
>>>
>>> > file.size(infile)
>>> [1] 4078192743 <(407)%20819-2743>
>>>
>>>
>>> i am pretty sure that nea...
2017 Jul 16
0
readLines without skipNul=TRUE causes crash
...::cachaca` can be replaced with
>>>>> `download.file` my current example requires a huge download, so
>sort of
>>>>> painful to repeat but i'm pretty confident that's not the issue.
>>>>>
>>>>>
>>>>> the archive::archive_extract() function unzips a (probably
>corrupt) .RAR
>>>>> file and creates a text file with 80,937 lines. this file is 4GB:
>>>>>
>>>>> > file.size(infile)
>>>>> [1] 4078192743 <(407)%20819-2743>
>>>>>
>>&...
2017 Jul 16
2
readLines without skipNul=TRUE causes crash
...h
> >>>>> `download.file` my current example requires a huge download, so
> >sort of
> >>>>> painful to repeat but i'm pretty confident that's not the issue.
> >>>>>
> >>>>>
> >>>>> the archive::archive_extract() function unzips a (probably
> >corrupt) .RAR
> >>>>> file and creates a text file with 80,937 lines. this file is 4GB:
> >>>>>
> >>>>> > file.size(infile)
> >>>>> [1] 4078192743 <(407)%20819-2743>
>...
2017 Jul 15
2
readLines without skipNul=TRUE causes crash
...oad cacheing, so `lodown::cachaca` can be replaced with
>>>> `download.file` my current example requires a huge download, so sort of
>>>> painful to repeat but i'm pretty confident that's not the issue.
>>>>
>>>>
>>>> the archive::archive_extract() function unzips a (probably corrupt) .RAR
>>>> file and creates a text file with 80,937 lines. this file is 4GB:
>>>>
>>>> > file.size(infile)
>>>> [1] 4078192743 <(407)%20819-2743>
>>>>
>>>>
>>>>...
2017 Jul 16
0
readLines without skipNul=TRUE causes crash
...`download.file` my current example requires a huge download,
>so
>> >sort of
>> >>>>> painful to repeat but i'm pretty confident that's not the
>issue.
>> >>>>>
>> >>>>>
>> >>>>> the archive::archive_extract() function unzips a (probably
>> >corrupt) .RAR
>> >>>>> file and creates a text file with 80,937 lines. this file is
>4GB:
>> >>>>>
>> >>>>> > file.size(infile)
>> >>>>> [1] 4078192743 <(4...
2017 Jul 17
0
readLines without skipNul=TRUE causes crash
...replaced with
>>>>> `download.file` my current example requires a huge download, so sort
>>>>> of
>>>>> painful to repeat but i'm pretty confident that's not the issue.
>>>>>
>>>>>
>>>>> the archive::archive_extract() function unzips a (probably corrupt)
>>>>> .RAR
>>>>> file and creates a text file with 80,937 lines. this file is 4GB:
>>>>>
>>>>> > file.size(infile)
>>>>> [1] 4078192743 <(407)%20819-2743>
>>>&...
2017 Jul 17
1
readLines without skipNul=TRUE causes crash
...requires a huge download,
> >so
> >> >sort of
> >> >>>>> painful to repeat but i'm pretty confident that's not the
> >issue.
> >> >>>>>
> >> >>>>>
> >> >>>>> the archive::archive_extract() function unzips a (probably
> >> >corrupt) .RAR
> >> >>>>> file and creates a text file with 80,937 lines. this file is
> >4GB:
> >> >>>>>
> >> >>>>> > file.size(infile)
> >> >>>>...