swarm-lab / editR

A Rmarkdown editor with instant preview
GNU General Public License v3.0
350 stars 30 forks source link

aceEditor unused arguments error #6

Closed mpschr closed 9 years ago

mpschr commented 9 years ago

Hi

I installed the GitHub version as described in the readme.md

Nevertheless, I directly get an error message trying to use the editR package:

> library(editR)
>  editR("test.Rmd")
Loading required package: tools
Loading required package: shiny
Error in aceEditor("rmd", mode = "markdown", wordWrap = TRUE, fontSize = .Options$editR$editor_font_size,  : 
  unused arguments (wordWrap = TRUE, debounce = 100, autoComplete = "enabled")
>  editR()
Error in aceEditor("rmd", mode = "markdown", wordWrap = TRUE, fontSize = .Options$editR$editor_font_size,  : 
  unused arguments (wordWrap = TRUE, debounce = 100, autoComplete = "enabled")
sjmgarnier commented 9 years ago

@mpschr Can you tell me which version of R and shinyAce you're using?

mpschr commented 9 years ago

@sjmgarnier

sessionInfo()

R version 3.0.2 (2013-09-25) Platform: x86_64-pc-linux-gnu (64-bit)

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] tools stats graphics grDevices utils datasets methods
[8] base

other attached packages: [1] shinyBS_0.61 shinyFiles_0.6.0 shinyAce_0.1.0 shiny_0.11.1
[5] editR_0.2.0

loaded via a namespace (and not attached): [1] digest_0.6.4 htmltools_0.2.6 httpuv_1.3.2 mime_0.3
[5] R6_2.0.1 Rcpp_0.11.6 RJSONIO_1.0-3 xtable_1.7-1

mpschr commented 9 years ago

Seemed to be an R version problem. I updated my R to the latest version (3.2.0), installed editR and it's dependencies, et voilà - it works

> sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.2 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] tools     stats     graphics  grDevices utils     datasets  methods  
[8] base     

other attached packages:
[1] rmarkdown_0.6.1  knitr_1.10.5     shinyBS_0.61     shinyFiles_0.6.0
[5] shiny_0.11.1     editR_0.2.0      shinyAce_0.2.1  

loaded via a namespace (and not attached):
 [1] Rcpp_0.11.6      magrittr_1.5     devtools_1.8.0   xtable_1.7-4    
 [5] R6_2.0.1         stringr_1.0.0    httr_0.6.1       tcltk_3.2.0     
 [9] git2r_0.10.1     htmltools_0.2.6  rversions_1.0.0  digest_0.6.8    
[13] RJSONIO_1.3-0    formatR_1.2      codetools_0.2-11 bitops_1.0-6    
[17] RCurl_1.95-4.6   evaluate_0.7     memoise_0.2.1    mime_0.3        
[21] stringi_0.4-1    XML_3.98-1.1     markdown_0.7.7   httpuv_1.3.2   
sjmgarnier commented 9 years ago

@mpschr You beat me to it. I was about to ask you to update your version of R and try again. Thanks for closing the issue :-)

englianhu commented 8 years ago
> devtools::session_info()
Session info -----------------------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.2.2 (2015-08-14)
 system   x86_64, mingw32             
 ui       RStudio (0.99.486)          
 language (EN)                        
 collate  English_United States.1252  
 tz       Asia/Tokyo                  
 date     2015-10-09
> 
> paste0(getwd(),'/Quiz01.Rmd')
[1] "C:/Users/Scibrokes/Documents/GitHub/englianhu/Coursera-Data-Science-Capstone/Quiz01.Rmd"
> editR(paste0(getwd(),'/Quiz01.Rmd'))
- Error in aceEditor("rmd", mode = "markdown", wordWrap = TRUE, fontSize = .Options$editR$editor_font_size, : unused arguments (wordWrap = TRUE, debounce = 100, autoComplete = "enabled")
sjmgarnier commented 8 years ago

@englianhu You're likely not using the correct version of shinyAce. What version of the package do you have?