search for: str_const

Displaying 4 results from an estimated 4 matches for "str_const".

2020 Apr 22
2
parse data wrong for R 4.0. raw strings
...1 24 7 0 expr FALSE #> 1 1 1 1 1 1 3 SYMBOL TRUE x #> 3 1 1 1 1 3 7 expr FALSE #> 2 1 3 1 4 2 7 LEFT_ASSIGN TRUE <- #> 4 1 6 1 24 4 6 STR_CONST TRUE "hello, "world") #> 6 1 6 1 24 6 7 expr FALSE Note that for STR_CONST, the opening delimiter is not included, but the paren from the closing delimiter is. Best, Gabor
2020 Apr 22
1
[External] parse data wrong for R 4.0. raw strings
...I get a chance. > > Simpler version: > > getParseData(parse(text = 'r"-|hello|-"')) > > > > getParseData(parse(text = 'r"(hello)"')) > line1 col1 line2 col2 id parent token terminal text > 1 1 1 1 10 1 3 STR_CONST TRUE "hello) > 3 1 1 1 10 3 0 expr FALSE > > The opening quote probably should not be there either. > > More likely to get fixed sooner if someone can provide a patch. > > Best, > > luke > > On Wed, 22 Apr 2020, G?bor Cs?rdi wrote...
2020 Apr 22
0
[External] parse data wrong for R 4.0. raw strings
Looks like a bug. Will have a look when I get a chance. Simpler version: getParseData(parse(text = 'r"-|hello|-"')) > getParseData(parse(text = 'r"(hello)"')) line1 col1 line2 col2 id parent token terminal text 1 1 1 1 10 1 3 STR_CONST TRUE "hello) 3 1 1 1 10 3 0 expr FALSE The opening quote probably should not be there either. More likely to get fixed sooner if someone can provide a patch. Best, luke On Wed, 22 Apr 2020, G?bor Cs?rdi wrote: > This seems like a bug to me: > > cod...
2007 Dec 14
3
calculating the number of days from dates
...4 16/03/2007 4 3/03/2003 4/04/2004 5 8/11/2006 1/05/2007 > class(dates$v1) [1] "factor" > class(dates$v2) [1] "factor" > dates <- read.csv("c:\\dates.csv",header=T, as.Date(as.character(dates) "%d/%m/%Y")) Error: syntax error, unexpected STR_CONST, expecting ',' in "dates <- read.csv("c:\\dates.csv",header=T, as.Date(as.character(dates) "%d/%m/%Y"" > Any assistance is much appreciated, Bob