Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] assigning using := prints during source( , echo=TRUE) (but not from console) #2369

Closed
jan-glx opened this issue Sep 18, 2017 · 1 comment · Fixed by #3544
Closed

[bug] assigning using := prints during source( , echo=TRUE) (but not from console) #2369

jan-glx opened this issue Sep 18, 2017 · 1 comment · Fixed by #3544
Milestone

Comments

@jan-glx
Copy link
Contributor

jan-glx commented Sep 18, 2017

> dt <- data.table(a=1)
> dt[,a:=1]
> source('~/.active-rstudio-document', echo=TRUE)

> dt <- data.table(a=1)

> dt[,a:=1]
   a
1: 1

Related to #2319.

sessionInfo():

R version 3.4.1 RC (2017-06-22 r72854)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252 LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] data.table_1.10.5

loaded via a namespace (and not attached):
[1] compiler_3.4.1 tools_3.4.1   
@MichaelChirico
Copy link
Member

Confirming this is not RStudio-specific; command line code:

echo "library(data.table)
DT = data.table(a = 1)
DT[ , a := 1]
" > test.R
R
source('test.R', echo = TRUE)
#    a
# 1: 1
DT[ , a := 1]

Also related to #933

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants