{"action":"opened","issue":{"url":"https://api.github.com/repos/davidgohel/ReporteRs/issues/150","repository_url":"https://api.github.com/repos/davidgohel/ReporteRs","labels_url":"https://api.github.com/repos/davidgohel/ReporteRs/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/davidgohel/ReporteRs/issues/150/comments","events_url":"https://api.github.com/repos/davidgohel/ReporteRs/issues/150/events","html_url":"https://github.com/davidgohel/ReporteRs/issues/150","id":189398449,"number":150,"title":"Template styles overwritten by ReporteRs default font","user":{"login":"slarge","id":5000131,"avatar_url":"https://avatars.githubusercontent.com/u/5000131?v=3","gravatar_id":"","url":"https://api.github.com/users/slarge","html_url":"https://github.com/slarge","followers_url":"https://api.github.com/users/slarge/followers","following_url":"https://api.github.com/users/slarge/following{/other_user}","gists_url":"https://api.github.com/users/slarge/gists{/gist_id}","starred_url":"https://api.github.com/users/slarge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slarge/subscriptions","organizations_url":"https://api.github.com/users/slarge/orgs","repos_url":"https://api.github.com/users/slarge/repos","events_url":"https://api.github.com/users/slarge/events{/privacy}","received_events_url":"https://api.github.com/users/slarge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-15T13:57:28Z","updated_at":"2016-11-15T13:57:28Z","closed_at":null,"body":"Some unexpected behaviour has just turned up while modifying a template with bookmarks. Given the template, the stylenames \"EcoregionHeader\" and \"AdviceHeading\" should both be in Calibri and font sized 9 and 11. The output document \"tester.docx\", however, remains in the default font and font size. Your thoughts are appreciated.\r\n\r\n```\r\n  rm(list = ls())\r\n  library(ReporteRs)\r\n  library(magrittr)\r\n  draftDoc <- docx(template = \"~/AdviceTemplate.docx\")\r\n  \r\n  # styles(draftDoc)\r\n  draftDoc <- draftDoc %>%\r\n    addParagraph(value = \"TEXT text text text\",\r\n                 stylename = \"EcoregionHeader\",\r\n                 bookmark = \"Ecoregion_Header\") %>%\r\n    addParagraph(value = \"Other text text text\",\r\n                 stylename = \"AdviceHeading\",\r\n                 bookmark = \"Advice_Heading\")\r\n\r\n  writeDoc(draftDoc, file = paste0(\"~/tester.docx\"))\r\n  getOption(\"ReporteRs-default-font\")\r\n  sessionInfo()\r\n```\r\n[1] \"Times New Roman\"\r\n>   sessionInfo()\r\nR version 3.3.2 (2016-10-31)\r\nPlatform: x86_64-w64-mingw32/x64 (64-bit)\r\nRunning under: Windows >= 8 x64 (build 9200)\r\n\r\nlocale:\r\n[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252    LC_MONETARY=English_United Kingdom.1252\r\n[4] LC_NUMERIC=C                            LC_TIME=English_United Kingdom.1252    \r\n\r\nattached base packages:\r\n[1] stats     graphics  grDevices utils     datasets  methods   base     \r\n\r\nother attached packages:\r\n[1] magrittr_1.5        ReporteRs_0.8.7     ReporteRsjars_0.0.2 rJava_0.9-8        \r\n\r\nloaded via a namespace (and not attached):\r\n [1] Rcpp_0.12.7       png_0.1-7         withr_1.0.2       digest_0.6.10     mime_0.5          R.methodsS3_1.7.1 R6_2.1.2         \r\n [8] xtable_1.8-2      gdtools_0.1.3     R.oo_1.20.0       R.utils_2.5.0     xml2_1.0.0        devtools_1.12.0   tools_3.3.2      \r\n[15] shiny_0.14.2      httpuv_1.3.3      memoise_1.0.0     htmltools_0.3.5   rvg_0.1.1         knitr_1.15   \r\n\r\n\r\n[AdviceTemplate.docx](https://github.com/davidgohel/ReporteRs/files/592089/AdviceTemplate.docx)\r\n[tester.docx](https://github.com/davidgohel/ReporteRs/files/592090/tester.docx)\r\n"}}
{"actor":{"display_login":"slarge"}}