See strange behavior in this youtube video
Most of the time I have issues visualizing the preview inline in Rstudio notebook. The problem is that the output of the chunks remains fixed in the screen.
I didnt change the configuration.
Is this a bug or is normal for rstudio notebook?
Additional info
R version 3.2.3 (2015-12-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=Spanish_Spain.1252 LC_CTYPE=Spanish_Spain.1252 LC_MONETARY=Spanish_Spain.1252 LC_NUMERIC=C
[5] LC_TIME=Spanish_Spain.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tables_0.7.79 Hmisc_4.0-0 Formula_1.2-1 survival_2.40-1 lattice_0.20-33 lubridate_1.5.6 dplyr_0.5.0 purrr_0.2.2 readr_0.2.2
[10] tidyr_0.6.0 tibble_1.2 ggplot2_2.1.0 tidyverse_1.0.0
loaded via a namespace (and not attached):
[1] Rcpp_0.12.5 formatR_1.4 RColorBrewer_1.1-2 plyr_1.8.4 base64enc_0.1-3 tools_3.2.3 rpart_4.1-10
[8] digest_0.6.9 jsonlite_0.9.22 evaluate_0.9 gtable_0.2.0 htmlTable_1.7 Matrix_1.2-6 DBI_0.4-1
[15] yaml_2.1.13 gridExtra_2.2.1 stringr_1.0.0 knitr_1.14 cluster_2.0.4 grid_3.2.3 nnet_7.3-12
[22] data.table_1.9.6 R6_2.1.2 rmarkdown_1.1 foreign_0.8-66 latticeExtra_0.6-28 magrittr_1.5 scales_0.4.0
[29] htmltools_0.3.5 splines_3.2.3 rsconnect_0.5 assertthat_0.1 colorspace_1.2-6 labeling_0.3 stringi_1.1.1
[36] acepack_1.3-3.3 lazyeval_0.2.0 munsell_0.4.3 chron_2.3-47
Related
I recently installed pandoc 2.4 on Windows and the conversion failed with error 1 occurs for all knitting. I can't knit html, word, and pdf.
The error says
output file: template.knitmd
pandoc.exe: template.utf8.md: openBinaryFile: does not exist (No such file or directory)
Error: pandoc document conversion failed with error 1
Execusion halted
This happens to even the raw basic template rmd file.
I am using a closed network without internet connection and limited writing permission. Previously I was able to knit rmd files located in documents folder generating outputs in same location.
The sessionInfo() says
R version 3.5.1 (2018-07-02)
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
[4] LC_Numeric=C LC_TIME=english_united states.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] flextable_0.4.5 officer_0.3.2 knitr_1.20 rmarkdown_1.10
loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 digest_0.6.18 rprojroot_1.3-2 R6_2.3.0 backports_1.1.2 magrittr_1.5 evaluate_0.12
[8]zip_1.0.0 stringi_1.2.4 gdtools_0.1.7 uuid_0.1-2 xml2_1.2.0 tools_3.5.1 stringr_1.3.1
[15] yaml_2.2.0 compiler_3.5.1 base64enc_0.1-3 htmltools_0.3.6
Any advice will be highly appreciated. (Or even ways how to change the settings back to old pandoc version without deleting the version 2.4.)
I have had this issue as well. Mapping the network drive where my R project was stored by following the instructions here solved the issue for me.
I change my system language to English both:
1) In R, R console: language = en
2) For any R script file : Sys.setlocale(category = "LC_ALL", locale = "english")
But when I started a new R markdown file in R Studio, the date is still not in English.
Anyone can help solve this issue? Thank you.
Updated with sessionInfo()
R version 3.4.4 (2018-03-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tmaptools_1.2-3 tmap_1.11-1 countrycode_1.00.0
etc. 26 packages attached
loaded via a namespace (and not attached):
[1] readxl_1.0.0 backports_1.1.2 osmar_1.1-7 plyr_1.8.4 lazyeval_0.2.1
etc. 114 loaded via a namespace
I was previously using quantsrat_0.9.1739 & blotter_0.9.1741 for some time and it worked fine until I updated them to the latest version 0.10.7 with blotter 0.12.4.
Most of the simulations that I previously wrote throw in the following message:
(This one has been extracted from the demo(macd))
Warning message:
In .updatePosPL(Portfolio = pname, Symbol = as.character(symbol), :
Could not parse ::2018-01-12 as ISO8601 string, or one/bothends of the range were outside the available prices: 2007-01-03/2014-05-30. Using all data instead.
It modifies the end results of nearly 50% of the backtest I generated in the past.
If I go back to the previous version of quantstrat and run the same strategies everything goes back to normal.
I would appreciate if anyone who might have faced the same situation as me could let me know how this problem can be fixed.
Here is more info regarding my session:
R version 3.4.3 (2017-11-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] quantstrat_0.10.7 foreach_1.4.4 blotter_0.12.4
[4] PerformanceAnalytics_1.4.3541 FinancialInstrument_1.3.1 quantmod_0.4-12
[7] TTR_0.23-2 xts_0.10-1 zoo_1.8-1
[10] devtools_1.13.4
loaded via a namespace (and not attached):
[1] codetools_0.2-15 lattice_0.20-35 digest_0.6.13 withr_2.1.1 MASS_7.3-47 grid_3.4.3 R6_2.2.2
[8] git2r_0.21.0 httr_1.3.1 curl_3.1 boot_1.3-20 iterators_1.0.9 tools_3.4.3 compiler_3.4.3
[15] memoise_1.1.0
Thanks in advance for any help you may provide !
Somebody could tell why saving this graph blocks Rstudio?
windows(width=7, height=7, pointsize=25,xpinch = 600,ypinch = 600)
par(oma=c(0,0,0,0))
par(xaxs='i',yaxs='i')
plot(seq(1,10,1),seq(1,10,1))
sessionInfo()
R version 3.3.0 (2016-05-03)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_3.3.0
thanks in advance
I have one Ubuntu14.04 laptops,
when I run below with RStudio Viewer, it work fines.
> library(dygraphs)
> dygraph(ldeaths, main = "All", group = "lung-deaths")
After I set below options to run in external browser,
options("viewer"=NULL)
dygraph(ldeaths, main = "All", group = "lung-deaths")
The browser will open files with below URL but nothing show:
http://localhost:18186/session/viewhtmla4c45554fcb/index.html
If I do the same thing in R console
library(dygraphs)
dygraph(ldeaths, main = "All", group = "lung-deaths")
it work fine and will open with URL with file:///tmp/RtmpE7nROm/viewhtmlf371b65fc2c/index.html
Questions1: Why Rstudio will open "http://localhost:18186..." instead of "file://....."?
Questions2: What commands in Rstudio to revert the display show in Viewer again? Currently I have to quit Rstudio and restart to get show in Viewer again.
PS: I doesn't see this issue in another Linux Labtops, not sure what configuration will causing this, hope someone can help to answer!
Below are sessionInfo() show in RStudio
sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.3 LTS
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=zh_TW.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=zh_TW.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=zh_TW.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=zh_TW.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] dygraphs_0.4.6
loaded via a namespace (and not attached):
[1] htmlwidgets_0.5 zoo_1.7-12 magrittr_1.5 htmltools_0.2.6 tools_3.2.2 xts_0.9-7
[7] rstudioapi_0.3.1 yaml_2.1.13 grid_3.2.2 jsonlite_0.9.16 digest_0.6.8 lattice_0.20-33