davidgohel / ReporteRs

Note that ReporteRs has been removed from CRAN the 16th of July 2018 and is not maintained anymore. please migrate to officer.
244 stars 44 forks source link

vanilla.table call throws .jnew error #201

Closed christinabrady closed 7 years ago

christinabrady commented 7 years ago

In trying to convert the following data frame into a vanilla.table, I got the following error:

image

image

Error in .jnew(class.BootstrapPage.document, title, ifelse(l10n_info()$"UTF-8",  : 
  java.lang.ClassNotFoundException

My session info is:

R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 14393)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252 LC_NUMERIC=C                           LC_TIME=English_United States.1252    

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

other attached packages:
[1] reshape2_1.4.2      RColorBrewer_1.1-2  stringr_1.1.0       ReporteRs_0.8.6     ReporteRsjars_0.0.2 broom_0.4.2         httr_1.2.1          XML_3.98-1.5        RODBC_1.3-14       

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.9       plyr_1.8.4        R.methodsS3_1.7.1 R.utils_2.5.0     tools_3.3.2       digest_0.6.12     tibble_1.2        nlme_3.1-128      lattice_0.20-34   png_0.1-7         psych_1.6.12      shiny_1.0.0      
[13] DBI_0.6           curl_2.3          parallel_3.3.2    rJava_0.9-8       dplyr_0.5.0       xml2_1.1.1        knitr_1.15.1      gdtools_0.1.3     grid_3.3.2        R6_2.2.0          rvg_0.1.2         foreign_0.8-67   
[25] tidyr_0.6.1       magrittr_1.5      htmltools_0.3.5   assertthat_0.1    mnormt_1.5-5      mime_0.5          xtable_1.8-2      httpuv_1.3.3      stringi_1.1.2     R.oo_1.21.0

I've run this code numerous times before, and it has worked fine. My company manages my computer, so IT may have pushed a java update recently. Other than that, nothing has changed.

davidgohel commented 7 years ago

Without reproducible example, I can't do anything.

davidgohel commented 7 years ago

Just figured out you are trying to generate an HTML doc but it's been deprecated then deleted more than a year ago.

christinabrady commented 7 years ago

Thanks for the quick response with limited information! Is there another way to preview the table without creating/saving a document?

davidgohel commented 7 years ago

... print a FlexTable?

print(ft)