officedown | officer features into R markdown documents

 by   davidgohel R Version: Current License: Non-SPDX

kandi X-RAY | officedown Summary

kandi X-RAY | officedown Summary

officedown is a R library typically used in Utilities applications. officedown has no bugs, it has no vulnerabilities and it has low support. However officedown has a Non-SPDX License. You can download it from GitHub.

{officedown} is bringing some officer features into R markdown documents.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              officedown has a low active ecosystem.
              It has 349 star(s) with 26 fork(s). There are 19 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 7 open issues and 76 have been closed. On average issues are closed in 155 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of officedown is current.

            kandi-Quality Quality

              officedown has 0 bugs and 0 code smells.

            kandi-Security Security

              officedown has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              officedown code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              officedown has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              officedown releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of officedown
            Get all kandi verified functions for this library.

            officedown Key Features

            No Key Features are available at this moment for officedown.

            officedown Examples and Code Snippets

            No Code Snippets are available at this moment for officedown.

            Community Discussions

            QUESTION

            Unequal indentation in officedown R package
            Asked 2022-Apr-15 at 23:42

            I'm using officedown package to generate MS Word documents. I noticed a strange and annoying issue. There are unequal indentation on left and right in the generated output (see the attached picture)

            The Rmarkdown code I use:

            ...

            ANSWER

            Answered 2022-Apr-14 at 10:28

            You can define the margins you want to use (see ?rdocx_document argument page_margins):

            Source https://stackoverflow.com/questions/71869635

            QUESTION

            RMarkdown Officedown: Insert two images side by side to word document with captions
            Asked 2022-Mar-11 at 18:09

            How can I insert two images side by side into a word document (.docx) with captions?

            I found several solutions for HTML and pdf documents. However, for word documents, this doesn't seem to be the case.

            This is my YAML:

            ...

            ANSWER

            Answered 2022-Mar-09 at 11:56

            Since no one commented yet, I am just pointing out that you could, as a workaround, use a two column layout (you have to load the officer package as well for the alignment). Either put the graphs with caption in separate columns (if they have the same height this works well), or just add the captions below the side-by-side graph, e.g. like this in the first scenario:

            Source https://stackoverflow.com/questions/71394122

            QUESTION

            add coloured dot in new column using dplyr
            Asked 2022-Feb-10 at 18:37

            I want to add a colored dot in a new column based on the value of another column.

            I have:

            ...

            ANSWER

            Answered 2022-Feb-10 at 17:21

            You can achieve this by vectorizing your colour_choice function:

            Source https://stackoverflow.com/questions/71068389

            QUESTION

            Generate parameterized ppt reports using officer
            Asked 2022-Jan-11 at 16:46

            Using code below, I'm able to generate a ppt report for subset of mtcars dataset:

            ...

            ANSWER

            Answered 2022-Jan-11 at 16:46

            You could put your plotting code in a function which e.g. takes two arguments, a dataframe (x) and a title.

            Similarly put the code to prepare the pptx inside a function, which e.g. takes two arguments, a dataframe (x) and a title or filename or ...

            In my code below I have put your three datasets in a list and then make use of purrr::iwalk to loop over this list to make a pptx report for each dataset. Using purrr::iwalk the name of the dataset is passed as the second argument to the reporting function.

            Source https://stackoverflow.com/questions/70670231

            QUESTION

            Can R Officer Be Used to Output Regression Tables in a Specific Style?
            Asked 2022-Jan-04 at 17:44

            My prior understanding was that the ability to utilize Microsoft Word Table styles is only available in the officedown package, but syntax like

            ...

            ANSWER

            Answered 2022-Jan-04 at 17:44

            You can use body_add_table():

            Source https://stackoverflow.com/questions/70581393

            QUESTION

            Table captions underneath tables if using gtsummary + flextable in officedown
            Asked 2021-Dec-15 at 08:35

            I feel like I am missing something easy. Fingers crossed thats it.

            Im trying to produce tables using gtsummary and flextable in officedown. I'm using the yaml options from the "Advanced word document" template in officedown.

            Below is my code. The first 2 tables have the captions underneath and the third is on top, as it should be!

            ...

            ANSWER

            Answered 2021-Dec-15 at 08:35

            Not an expert in flextable and officedown. But one option which worked for me was to set the position of the table captions for the R Markdown document via

            knitr::opts_chunk$set(tab.topcaption = TRUE).

            Full reproducible code:

            Source https://stackoverflow.com/questions/70358796

            QUESTION

            How to import a figure as its original height/width ratio?
            Asked 2021-Dec-14 at 13:39

            I'm using the officedown package to generate a Word document. May I ask, if I want to import a well-designed figure from the disk, how to control officedown not to change the height/width ratio of the figure?

            For example, my original figure looks like this:

            However, in the Word document generated by officedown, it looks like this:

            May I ask, how to avoid the distortion in officedown? And how to make the width of the figure take the whole line?

            My question can be reproduced by the following code:

            ...

            ANSWER

            Answered 2021-Dec-14 at 13:39

            I have a little experimented.

            For the output:

            Source https://stackoverflow.com/questions/70312388

            QUESTION

            Adding image to flextable to be generated with knitr fails but works in RMarkdown chunk
            Asked 2021-Nov-21 at 10:28

            Running R4.1.2 and Windows 10:

            I'm trying to knit a document that has a flextable with a ggplot image that was created via ggsave. When I run the code chunk in RMarkdown, it works fine, but when I attempt to knit a word document, I get the following error. If I don't include the image, knitr works fine.

            ...

            ANSWER

            Answered 2021-Nov-21 at 10:28

            I could not reproduce your error. Below the code to produce your table. There are two solutions, my recommended solution (documented here: https://ardata-fr.github.io/flextable-book/cell-content-1.html#base-plots-and-ggplot-objects) and something closer to what you wrote.

            Source https://stackoverflow.com/questions/70041892

            QUESTION

            Cross-referencing tables {SEQ Table \\* arabic} and figures {SEQ Figure \\* arabic} with officedown [i.e. block_caption() and run_autonum()]
            Asked 2021-Aug-10 at 10:30

            I want to create a .docx report with {officedown}, but instead of using "bookmark" reference types for cross-referencing my tables and figures as suggested in ch.4.6 and ch.4.7 of the User Documentation, I would like my references to be actual "Figure" and "Table" reference types in the resulting .docx. As discussed in this stackoverflow post, this would require {SEQ Figure \\* arabic} and {SEQ Table \\* arabic} word fields and the answers show how to implement this via officer::slip_in_seqfield() or crosstable::body_add_table_legend().

            However, I think, these approaches to obtain actual "Figure" and "Table" reference types only work for the {officer} syntax and not the {officedown} syntax. To be clear, so far I understood

            • {officer} syntax as an R-script that makes use of a dplyr chain that starts with read_docx() %>% [example]
            • {officedown} syntax as an Rmd-script that makes use of block_caption() and run_autonum() within a chunk [example]

            (please correct me if I am wrong)

            Therefore, I would like to know whether there is a way to modify the suggested approach in {officedown} in order to obtain actual "Figure" and "Table" reference types that I can also cross-reference in the text. Below is an example using the standard suggested approach:

            ...

            ANSWER

            Answered 2021-Jul-29 at 11:30

            QUESTION

            Level 4 and 5 headers not included in the Table of Contents for officedown
            Asked 2021-May-11 at 16:10

            I'm using officedown with Rmarkdown to knit word docs and currently it's not reading level 4 and 5 headers in the Table of Contents (though it's correctly adding headers levels 1-3). My YAML is:

            ...

            ANSWER

            Answered 2021-May-11 at 16:10

            Changing the table of contents block from

            to

            Source https://stackoverflow.com/questions/67457200

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install officedown

            You can install {officedown} from github with:.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/davidgohel/officedown.git

          • CLI

            gh repo clone davidgohel/officedown

          • sshUrl

            git@github.com:davidgohel/officedown.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular R Libraries

            ggplot2

            by tidyverse

            awesome-R

            by qinwf

            shiny

            by rstudio

            dplyr

            by tidyverse

            swirl_courses

            by swirldev

            Try Top Libraries by davidgohel

            ggiraph

            by davidgohelR

            officer

            by davidgohelR

            flextable

            by davidgohelR

            ReporteRs

            by davidgohelR

            rvg

            by davidgohelR