<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>I was wondering if an error like this had been addressed before. I am using data table 1.9.2.</div><div><br></div><div>It appears that the error has to do with the interaction with R-Studio. When I run</div><div><br></div><div><blockquote type="cite"><font color="#000000">library(data.table)<br>dt<-data.table(strip="Nov08",date=c("2006-08-01","2006-08-02","2006-08-03","2006-08-04","2006-08-07",<br> "2006-08-08","2006-08-09","2006-08-10","2006-08-11","2006-08-14"))<br>dt[,forward_date:=c(rep(NA,5),date),by='strip']</font><br></blockquote><br></div><div>The result I expect is below, along with a warning message.</div><div><pre tabindex="0" class="GNVMTOMCABB" style="font-family: Monaco, monospace; font-size: 12px; outline: none; border: none; margin-top: 0px; margin-bottom: 0px; -webkit-user-select: text; white-space: pre-wrap !important; line-height: 17.399999618530273px; color: rgb(255, 255, 255); text-align: -webkit-left; background-color: rgb(50, 50, 50); ">strip date forward_date
1: Nov08 2006-08-01 NA
2: Nov08 2006-08-02 NA
3: Nov08 2006-08-03 NA
4: Nov08 2006-08-04 NA
5: Nov08 2006-08-07 NA
6: Nov08 2006-08-08 2006-08-01
7: Nov08 2006-08-09 2006-08-02
8: Nov08 2006-08-10 2006-08-03
9: Nov08 2006-08-11 2006-08-04
10: Nov08 2006-08-14 2006-08-07</pre><div><br></div></div><div>However, I don't get this.</div><div><br></div><div>1 of two things can happen.</div><div><br></div><div>1. My R-Studio will completely crash without warning. All unsaved information is lost.</div><div>2. I can get "Error: Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'character'" "In addition:Lost warning messages"</div><div><br></div><div>Do you know what is the cause here? It seems related to memory allocation, or something under the hood relating to the interaction of R-Studio and data table.</div><div><br></div><div>Zach</div></body></html>