MS word Styles is not applied in the result document

Skip to first unread message

andi buwono

Nov 10, 2016, 4:15:19 AM11/10/16
to ReporteRs

I just try ReporteRs to produce word document.
I add paragraph and supply Styles to it (normal word style but with Source Sans Pro typeface), as below. 

addParagraph(doc, value = paste([report.month],report.year), stylename = "Normal" )

In the resulted word document, the paragraph has indeed 'tagged' with normal style but it still shown with Times New Roman typeface. 
Is any one else have similar experience? or it's related to my environtment (R 3.3.2 and ReporteRs 0.8.7) , Thanks Before

regards, andi

Mike Kutz

Dec 22, 2016, 2:21:15 PM12/22/16
to ReporteRs
I'm seeing the same with my Heading 1, Heading 2, etc.  Have you solved this issue?


andi buwono

Dec 22, 2016, 8:41:01 PM12/22/16
to ReporteRs

No, I have not. But I have yet to try the github version (I use CRAN version). Currently I am using a workaround, a cumbersome one, which is to reapply the style in MS Word (using right click select all in the respected styles ribbon).

Mar 2, 2017, 12:05:15 PM3/2/17
to ReporteRs
Did either of you solve this issue? I'm having the same problem.


Mar 3, 2017, 5:10:35 AM3/3/17
to ReporteRs
ok FYI I solved this by installing reporteRs form github (devtools::install_github('davidgohel/ReporteRs'). This totally broke my code and I couldn't even produce a report so I uninstalled it and shut down rstudio. On reopening it work perfectly and the styles were picked up :)

David Gohel

Mar 3, 2017, 5:16:00 AM3/3/17
to ReporteRs
I think actual CRAN version solve the issue. 
Could you send your sessionInfo() please

andi buwono

Mar 6, 2017, 9:20:22 AM3/6/17
to ReporteRs
Thanks, I think it is solved now (I updated all Package).  Below my sessionInfo(), Thanks for the great packages. Regards

> sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

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

other attached packages:
 [1] RColorBrewer_1.1-2  colorRamps_2.3      rvest_0.3.2         xml2_1.1.1         
 [5] scales_0.4.1        ggmap_2.6.2         tidyr_0.6.1         dplyr_0.5.0        
 [9] data.table_1.10.4   readxl_0.1.1        gridExtra_2.2.1     ggplot2_2.2.1.9000 
[13] ReporteRs_0.8.8     ReporteRsjars_0.0.2

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    
 [5] bitops_1.0-6      tools_3.3.2       digest_0.6.12     lattice_0.20-34  
 [9] tibble_1.2        gtable_0.2.0      png_0.1-7         shiny_1.0.0      
[13] DBI_0.5-1         mapproj_1.2-4     proto_1.0.0       rJava_0.9-8      
[17] httr_1.2.1        stringr_1.2.0     knitr_1.15.1      maps_3.1.1       
[21] gdtools_0.1.3     RgoogleMaps_1.4.1 R6_2.2.0          jpeg_0.1-8       
[25] rvg_0.1.2         XML_3.98-1.5      sp_1.2-4          selectr_0.3-1    
[29] reshape2_1.4.2    magrittr_1.5      htmltools_0.3.5   assertthat_0.1   
[33] mime_0.5          xtable_1.8-2      colorspace_1.3-2  geosphere_1.5-5  
[37] httpuv_1.3.3      labeling_0.3      stringi_1.1.2     lazyeval_0.2.0   
[41] munsell_0.4.3     rjson_0.2.15      R.oo_1.21.0     
Reply all
Reply to author
0 new messages