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

saveChart cannot assign chart object to quantmod evironment #154

Closed
joshuaulrich opened this issue May 12, 2017 · 0 comments
Closed

saveChart cannot assign chart object to quantmod evironment #154

joshuaulrich opened this issue May 12, 2017 · 0 comments
Assignees
Labels

Comments

@joshuaulrich
Copy link
Owner

saveChart() throws an error because the .chob binding is locked. This was first reported in this thread on R-SIG-Finance. Thanks to Wilson Thong for the reminder to address this issue.

library(quantmod)
data(sample_matrix)
x <- as.xts(sample_matrix)
chartSeries(x)
saveChart()
# Error in assign(".chob", x, env) : 
#   cannot change value of locked binding for '.chob'

Session Info

R> sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

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

other attached packages:
[1] quantmod_0.4-8 TTR_0.23-1     xts_0.10-0     zoo_1.8-0     

loaded via a namespace (and not attached):
[1] tools_3.3.3     grid_3.3.3      lattice_0.20-35
@joshuaulrich joshuaulrich self-assigned this Apr 1, 2018
@joshuaulrich joshuaulrich added this to the Release 0.4-13 milestone Nov 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant