Displaying 13 results from an estimated 13 matches for "unzipped_files".
2017 Jul 15
2
readLines without skipNul=TRUE causes crash
...older" )
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( infile , skipNul = TRUE )
# crash
my_file <- readLines...
2017 Jul 15
0
readLines without skipNul=TRUE causes crash
...t; # 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( infile , skipNul...
2017 Jul 15
4
readLines without skipNul=TRUE causes crash
...n 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
>&...
2017 Jul 15
0
readLines without skipNul=TRUE causes crash
...nloaded
>>> 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
...: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::countLine...
2017 Jul 16
3
readLines without skipNul=TRUE causes crash
...icrodados_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 )
>>>>>>
>>>>>...
2017 Jul 15
0
readLines without skipNul=TRUE causes crash
...t;> 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
>>&...
2017 Jul 16
0
readLines without skipNul=TRUE causes crash
...>>>>>>> ,
>>>>>>> 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 )
>>>>>>&...
2017 Jul 16
2
readLines without skipNul=TRUE causes crash
...; >>>>>>> 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 )...
2017 Jul 15
2
readLines without skipNul=TRUE causes crash
...icrodados_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 )
>>>>>>
>>>>>...
2017 Jul 16
0
readLines without skipNul=TRUE causes crash
...t; 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 , valu...
2017 Jul 17
0
readLines without skipNul=TRUE causes crash
...,
>>>>>>> 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 )
>>>>>>>...
2017 Jul 17
1
readLines without skipNul=TRUE causes crash
...gt;>>> = 'wb' )
> >> >>>>>>>
> >> >>>>>>> archive::archive_extract( tf , dir = normalizePath(
> >file_folder
> >> >) )
> >> >>>>>>>
> >> >>>>>>> unzipped_files <- list.files( file_folder , recursive = TRUE
> >,
> >> >>>>>>> full.names =
> >> >>>>>>> TRUE )
> >> >>>>>>>
> >> >>>>>>> infile <- grep( "DADOS(.*)\\.txt$"...