-
Notifications
You must be signed in to change notification settings - Fork 985
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
shift
crashes R when using n = "lead"
#3354
Milestone
Comments
SymbolixAU
changed the title
Feb 5, 2019
shift
crashes when using n = "lead"
shift
crashes RStudio when using n = "lead"
@SymbolixAU could you also provide
e043dd2 is not 1.12.0 but 1.12.1 |
jangorecki
added a commit
that referenced
this issue
Feb 5, 2019
jangorecki
changed the title
Feb 5, 2019
shift
crashes RStudio when using n = "lead"
shift
crashes R when using n = "lead"
@jangorecki sure thing This is the utils::sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS 10.14.1
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
locale:
[1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] data.table_1.12.1 microbenchmark_1.4-4
loaded via a namespace (and not attached):
[1] compiler_3.5.1 tools_3.5.1 I've updated to the latest release and get the same error remove.packages("data.table")
install.packages("data.table", type = "source",
repos = "http://Rdatatable.github.io/data.table")
library(data.table)
dt <- data.table(
id = 1:5
, val = letters[1:5]
)
## This will crash RStudio
dt[, new_col := shift(val, "lead")]
devtools::session_info(pkgs = "data.table")
─ Session info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────
setting value
version R version 3.5.1 (2018-07-02)
os macOS 10.14.1
system x86_64, darwin15.6.0
ui RStudio
language (EN)
collate en_AU.UTF-8
ctype en_AU.UTF-8
tz Australia/Melbourne
date 2019-02-06
─ Packages ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
package * version date lib source
data.table * 1.12.1 2019-02-05 [1] local
[1] /Users/david/Library/R/3.5/library
[2] /Library/Frameworks/R.framework/Versions/3.5/Resources/library
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While I'm aware this is incorrect use of the
shift
function, but if you forget to specify thetype
argument and useshift(val, "lead")
, this causes Rstudio to crash.Reproducible example
Session info
The text was updated successfully, but these errors were encountered: