Displaying 14 results from an estimated 14 matches for "file_con".
Did you mean:
file_copy
2016 Nov 14
0
Read.dcf with no newline ending: gzfile drops last line
...dLines(fname)
[1] "Package: test" "Type: Package"
Warning message:
In readLines(fname) :
incomplete final line found on
'/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//Rtmpz95dsT/file180a65a6b745'
> ### readlines with file connection - warning but all fields
> file_con <- file(fname)
> readLines(file_con)
[1] "Package: test" "Type: Package"
Warning message:
In readLines(file_con) :
incomplete final line found on
'/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//Rtmpz95dsT/file180a65a6b745'
>
> ### readlines with gzfile c...
2017 Jul 15
4
readLines without skipNul=TRUE causes crash
...upt) .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 connection and scan
through..
> file_con <- file( infile , 'r' )
>
> first_80936_lines <- readLines( file_con , n = 80936 )
> scan( w , n = 1 , what = character() )
Read 1 item
[1] "1000023930632009"
> scan( w , n = 1 , what = character() )
Read 1 item
[1] "36F292400...
2017 Jul 15
0
readLines without skipNul=TRUE causes crash
...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 the file. here's what happens when i create a file connection and scan
> through..
>
> > file_con <- file( infile , 'r' )
> >
> > first_80936_lines <- readLines( file_con , n = 80936 )
> > scan( w , n = 1 , what = character() )
> Read 1 item
> [1] "1000023930632009"
> > scan( w , n = 1 , what = character() )
>...
2017 Jul 15
3
readLines without skipNul=TRUE causes crash
...ize(infile)
>> [1] 4078192743 <(407)%20819-2743>
>>
>>
>> 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 connection and scan
>> through..
>>
>> > file_con <- file( infile , 'r' )
>> >
>> > first_80936_lines <- readLines( file_con , n = 80936 )
>> > scan( w , n = 1 , what = character() )
>> Read 1 item
>> [1] "1000023930632009"
>> > scan( w , n = 1 , what = cha...
2017 Jul 16
3
readLines without skipNul=TRUE causes crash
...>>
>>>> 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 connection and
>>>> scan
>>>> through..
>>>>
>>>> > file_con <- file( infile , 'r' )
>>>> >
>>>> > first_80936_lines <- readLines( file_con , n = 80936 )
>>>> > scan( w , n = 1 , what = character() )
>>>> Read 1 item
>>>> [1] "1000023930632009"
>&...
2017 Jul 15
0
readLines without skipNul=TRUE causes crash
...078192743 <(407)%20819-2743>
>>>
>>>
>>> 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 connection and scan
>>> through..
>>>
>>> > file_con <- file( infile , 'r' )
>>> >
>>> > first_80936_lines <- readLines( file_con , n = 80936 )
>>> > scan( w , n = 1 , what = character() )
>>> Read 1 item
>>> [1] "1000023930632009"
>>> > scan...
2017 Jul 16
0
readLines without skipNul=TRUE causes crash
...retty 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 connection
>and
>>>>> scan
>>>>> through..
>>>>>
>>>>> > file_con <- file( infile , 'r' )
>>>>> >
>>>>> > first_80936_lines <- readLines( file_con , n = 80936 )
>>>>> > scan( w , n = 1 , what = character() )
>>>>> Read 1 item
>>>>> [1] "10000239...
2017 Jul 15
0
readLines without skipNul=TRUE causes crash
On 15/07/2017 7:35 AM, Anthony Damico wrote:
> hello, the last line of the code below causes a segfault for me on 3.4.1.
> i think i should submit to https://bugs.r-project.org/ unless others have
> advice? thanks
Segfaults are usually worth reporting as bugs. Try to come up with a
self-contained example, not using the lodown and archive packages. I
imagine you can do this by
2017 Jul 16
2
readLines without skipNul=TRUE causes crash
...s contained on a
> >single
> >>>>> line
> >>>>> in the file. here's what happens when i create a file connection
> >and
> >>>>> scan
> >>>>> through..
> >>>>>
> >>>>> > file_con <- file( infile , 'r' )
> >>>>> >
> >>>>> > first_80936_lines <- readLines( file_con , n = 80936 )
> >>>>> > scan( w , n = 1 , what = character() )
> >>>>> Read 1 item
> >>>>&g...
2017 Jul 15
2
readLines without skipNul=TRUE causes crash
...>>
>>>> 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 connection and
>>>> scan
>>>> through..
>>>>
>>>> > file_con <- file( infile , 'r' )
>>>> >
>>>> > first_80936_lines <- readLines( file_con , n = 80936 )
>>>> > scan( w , n = 1 , what = character() )
>>>> Read 1 item
>>>> [1] "1000023930632009"
>&...
2017 Jul 15
2
readLines without skipNul=TRUE causes crash
hello, the last line of the code below causes a segfault for me on 3.4.1.
i think i should submit to https://bugs.r-project.org/ unless others have
advice? thanks
install.packages( "devtools" )
devtools::install_github("ajdamico/lodown")
devtools::install_github("jimhester/archive")
file_folder <- file.path( tempdir() , "file_folder" )
tf <-
2017 Jul 16
0
readLines without skipNul=TRUE causes crash
...>> >>>>> line
>> >>>>> in the file. here's what happens when i create a file
>connection
>> >and
>> >>>>> scan
>> >>>>> through..
>> >>>>>
>> >>>>> > file_con <- file( infile , 'r' )
>> >>>>> >
>> >>>>> > first_80936_lines <- readLines( file_con , n = 80936 )
>> >>>>> > scan( w , n = 1 , what = character() )
>> >>>>> Read 1 item
>>...
2017 Jul 17
0
readLines without skipNul=TRUE causes crash
...; 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 connection and
>>>>> scan
>>>>> through..
>>>>>
>>>>> > file_con <- file( infile , 'r' )
>>>>> >
>>>>> > first_80936_lines <- readLines( file_con , n = 80936 )
>>>>> > scan( w , n = 1 , what = character() )
>>>>> Read 1 item
>>>>> [1] "10000239...
2017 Jul 17
1
readLines without skipNul=TRUE causes crash
...> >> >>>>> in the file. here's what happens when i create a file
> >connection
> >> >and
> >> >>>>> scan
> >> >>>>> through..
> >> >>>>>
> >> >>>>> > file_con <- file( infile , 'r' )
> >> >>>>> >
> >> >>>>> > first_80936_lines <- readLines( file_con , n = 80936 )
> >> >>>>> > scan( w , n = 1 , what = character() )
> >> >>>>>...