tbl_summary not rendering in rmarkdown - gtsummary

I've experienced a new problem getting tables to display in a rmarkdown document. The tables don't display after knitting the rmarkdown to html either. This is a new problem which started about 2 weeks ago. I previously had no problem with this and previous documents do run and display tables correctly. I haven't updated R Studio recently (using version 4.0.5), I use the same set up code as for previous rmd documents. The only way I can get the table to display in an rmd document is to run it two times, the first time it doesn't display but if I highlight it and run it again it will display. Any recommendations?

Related

How to include Dynamic image filenames in word and re-reference them

Is it possible to include filenames for images inserted into word that can be dynamically re-used throughout the document?
For example:
See word screenshot here
In the screenshot i have inserted images from PPT by exporting the PPT as Jpegs and inserted them individually into cells in a table in word. These images are then referenced throughout the instructional text in red text. If ever i delete a slide i have to go through the entire document to change the numbers appropriately. I want some sort of dynamic text to reduce my work efforts during client amends. Possible?
If you use Word's captioning tool for the Slide numbering, you can achieve the results you want by cross-referencing the captions. If you insert/delete a slide and refresh the content via Ctrl+A, F9, the cross-references will update accordingly.

OpenXML: update Embedded excel in Word document

I am updating word template with data run time using OpenXML. My question is after entering cell values in embedded Excel, it is not reflecting when I open the word document after process.
e.g. I have one word template document which has total 6 embedded Excel object. Each embedded Excel has three worksheets (e.g. display, data & settings). Once I have data while running application, the code is filling the value in data worksheet. The Display worksheet shows the value from Data worksheet based on Formulas applied on cells on display worksheet. Once entire process completes I opened newly generated word document, it shows Excel Display worksheet without the values applied. If I will edit/open worksheet from Word document than it get refreshed and showing new values.
Is there way in OpenXML to fix this issue?

Moving text and tables between pages after exporting in docx

I'd like to be able to edit my word document like said in the title. This is what my document look like after exporting to docx:
Structure: the table is generated with seven cells in a detail band. Every page have a footer and header of fixed length.
Problem: if i delete something on the first page, my text on the second page doesn't go up to the first. I managed to get text and tables moving in the same page but can't figure out how to do this with different pages. Jasper export to .docx using tables, you can see the gridlines in the picture. Table structure prevent the elements to float between pages. If i delete manually the "header" and "footer" tables from the document, my second page cells go up to the first. But it's a pain to edit manually every page of a 20 pages document everytime.
Desired solution: I want the text or tables to go up if i'm simply deleting something on the previous page.
Tried every combination of floating elements, subreport, stretc and so on. Nothing worked.
I know Jasper is not intended for massive editing after exporting but this is what i need now.

Copy data from Spreadsheet[LibreOffice Calc] to tables of Text Document[LibreOffice]

This was very interesting and challenging task for me. I want to copy data (1000s of rows with multiple columns) from Libre Office calc[spreadsheet] to the tables in Libre Office Writer[Text Document]. I spent almost a day to figure out the solution. Couldn't find the solution from any sites.
Copy the data[rows] from Spreadsheet.
Paste the same to the MS Word document[I did it by using Google docs as I'm using ubuntu].The table is created with rows and columns which is same as copied data.
Copy the table from word document and paste it in the Libre office Text Document.
Create the table with number of rows and columns Libre office Text Document.
Copy the table from Libre office Text Document[copied in point(3)] and paste in the table which is created in point(4).
NOTE / CAUTION : If you skip or alter any steps, it wont work.
Converting a column of text (perhaps from a screen-scrape of a online table) to a table format suitable for further work in a spreadsheet is easy if you have the traditional (locally installed) MS-Word program. The "Convert text to table" function there permits you to specify how many columns are in each record without having to edit your input files to manually place delimiters like commas, semi-colons, tabs etc. which is a PITA when you have to count rows to leave out the delimiter.
LibreOffice writer has a lightweight convert-text-to-table function which requires a lot of data conditioning before using it. In Libra Calc, Like any good spreadsheet, the "Transpose" function can be used to convert, say, 8 rows of the input column to a single 8-column row, but automating this requires macros or fixed templates.
So it is a non-trivial problem to duplicate that powerful capability in the old, locally installed MS-Word app, where users can take pages and pages of one-word data elements, and convert them into a "N" column table, where "N" is specified when you invoke the conversion in MS Word.

How do I paste data into a table using Confluence 5.7?

I have a pile of tabular data I need to paste onto a Confluence web page. The usual mechanisms are NOT working properly for me.
What "usual mechanisms?"
Copy the data to Excel then copy / paste into Confluence.
Format the content using wiki markup, meaning:
double bars before / between / after the column header cells
single bars before / between / after the data cells
and paste that into the Wiki page.
The first option gets me a table, but it doesn't show the grid lines, and the sorting doesn't work.
The second option plops the markup into the page, but does nothing with it. If I go to the first line and hit <return> after the last bar, it turns the line into a table with a header row (since it has double-bars). If I go to the second line and hit <return> after the last bar, it creates A SEPARATE TABLE with the data in it. I can go to the first table (created from the header row), tell Confluence to add a row below, then copy the data from the second table into that second row and it will do it. But I will need to repeat that sequence for EACH ROW OF DATA.
I've just lived with in this in the past. When there's only a few rows, no biggie. But I'm trying to create a table with 200+ rows. That sequence just isn't acceptable for this amount of work.
Suggestions on how to get this working?
I went a circuitous route to accomplish this:
Made a text file with my information and tab-separated the fields
Pasted this data in to Google Sheets
Copied the cells from Google Sheets
Pasted them in to the a pre-made table in Confluence
It was still faster than writing each field manually.
To insert large tables with the second option you need to first hit Ctrl + Shift + D and then paste in the table in wiki markup form.
Wrap the table in any macros required if you know the macro name and parms. This can be a serious PITA to do after a table has been created in the Confluence 5 GUI.
Click Insert and the resulting table will be converted to the new wiki format into the page.
According to this link, I'd assume it's a bug with the version of Confluence, at least as far as the sorting goes.
Looking through the Confluence JIRA, there appear to have been several issues with copy/pasting from Excel over the development. At least there's a workaround:
Workaround:
Go to the editor again
Cut out the (unsortable) table
Paste it again
Mark the first row as Header
Save the page
-> Now the table is sortable
If that does not work, please install the The confluence source editor, then edit the page to:
Remove the row " "
Replace all "td" tag to "th" tag for the first row of the table. For example, the column name "Number" will need to change from "Number" to "Number".
My Excel has 10 K rows and some rows are with background color. To maintain the Cell background color I followed this steps
Saved the Excel File as HTML File
Open the HTML code, Copy the Complete TABLE (HTML CODE)
In Confluence page Insert HTML Macro
Insert your codes and see the cell color will maintain.