swarm-lab / editR

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

Can't start editing due to *invalid argument type* error #4

Closed famuvie closed 9 years ago

famuvie commented 9 years ago

I started from scratch, following the installation instructions in the Readme.md. Then I created a new R markdown file in RStudio (wich gives some content which is compilable) and saved that as test.Rmd. Then I editR('test.Rmd'). It opens a new tab in firefox where I can see the source code in the left pane. The right pane shows the error messageinvalid argument type`. The console window in RStudio reads:

> editR('Review_Facu.Rmd')
Listening on http://127.0.0.1:6206
Error in !md : invalid argument type
Error in !md : invalid argument type

Here is my session info:

> session_info()
Session info--------------------------------------------------------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.1.2 (2014-10-31)
 system   x86_64, linux-gnu           
 ui       RStudio (0.98.1091)         
 language (EN)                        
 collate  en_US.UTF-8                 
 tz       <NA>                        

Packages------------------------------------------------------------------------------------------------------------------------------------
 package    * version  date       source                               
 bitops       1.0.6    2013-08-17 CRAN (R 3.1.2)                       
 codetools    0.2.9    2014-08-21 CRAN (R 3.1.1)                       
 devtools   * 1.6.1    2014-10-07 CRAN (R 3.1.2)                       
 digest       0.6.4    2013-12-03 CRAN (R 3.1.2)                       
 editR      * 0.1.4    2015-01-15 Github (swarm-lab/editR@bd96585)     
 evaluate     0.5.5    2014-04-29 CRAN (R 3.1.2)                       
 formatR      1.0      2014-08-25 CRAN (R 3.1.2)                       
 htmltools    0.2.6    2014-09-08 CRAN (R 3.1.2)                       
 httpuv       1.3.2    2014-10-23 CRAN (R 3.1.2)                       
 httr         0.5      2014-09-02 CRAN (R 3.1.2)                       
 knitr      * 1.8      2014-11-11 CRAN (R 3.1.2)                       
 markdown     0.7.4    2014-08-24 CRAN (R 3.1.2)                       
 mime         0.2      2014-09-26 CRAN (R 3.1.2)                       
 R6           2.0.1    2014-10-29 CRAN (R 3.1.2)                       
 Rcpp         0.11.3   2014-09-29 CRAN (R 3.1.2)                       
 RCurl        1.95.4.4 2014-11-29 CRAN (R 3.1.2)                       
 RJSONIO      1.3.0    2014-07-28 CRAN (R 3.1.2)                       
 rmarkdown  * 0.4.2    2014-12-22 CRAN (R 3.1.2)                       
 rstudioapi   0.1      2014-03-27 CRAN (R 3.1.2)                       
 shiny      * 0.10.2.2 2014-12-08 CRAN (R 3.1.2)                       
 shinyAce   * 0.2.0    2015-01-15 Github (trestletech/shinyAce@37cc8c3)
 shinyBS    * 0.25     2015-01-15 Github (ebailey78/shinyBS@75bc149)   
 shinyFiles * 0.4.0    2014-09-24 CRAN (R 3.1.2)                       
 stringr      0.6.2    2012-12-06 CRAN (R 3.1.2)                       
 xtable       1.7.4    2014-09-12 CRAN (R 3.1.2)                       
 yaml         2.1.13   2014-06-12 CRAN (R 3.1.2)  
sjmgarnier commented 9 years ago

Thanks for reporting this issue @famuvie. Could you please do 2 things for me?:

  1. Post an example .md file that create this problem.
  2. Update editR to its latest version (0.1.5) and see if the problem persists.

Thanks.

sjmgarnier commented 9 years ago

Ok, I found and corrected the source of the problem. Reinstall editR and it should work again.