RStudio does not display Rmarkdown content in seperate R window anymore - r-markdown

usually, when knitting a Rmarkdown file to .pdf after the process is complete, Rstudio opens a new
Rstudio window which displays the .pdf output. One can even keep this window open, knit again, and the .pdf will be updated with any made changes to the Rmarkdown file.
Somehow, I don't know which option I changed, this is not the proccess on my system anymore. If I knit now, the .pdf is updated as per usual, but no seperate Rstudio window opens to display it.
I can look at the .pdf by manually opening it with some pdf reader (acrobat in my case). If the document is still open in acrobat, I can not overwrite the .pdf with now changes as I am used to do.
I suppose the the solution is making some tickmark somewhere, but I simply can't find the solution. Thank you.
The test Rmarkdown I used to experiment to solve the problem looks like this:
---
title: "test"
author: "The Name"
date: "2023-01-20"
output:
pdf_document
---
## R Markdown
```{r}
#this is a comment

Ok, so the answer is just as trivial as one might expect.
The option can be found in the "Sweave" tab in global options.
In "PDF Preview" simply select "RStudio Viewer".

Related

How to adjust pages in RMarkdown pdf file?

I am creating a pdf document using RMarkdown in RStudio. The Knit do not create properly the fourth page. The page number on the foot still in the mean of on list at the botom of the page, and the text "desapears", even a new page is created but the text is not rendered.
I have just rolling back to 1.8
install.packages("devtools")
library(devtools)
install_version("rmarkdown", version = "1.8")
Is there any adjust in RStudio to avoid this issue ?
HTML and WORD make the report correctly using the same .Rmd file

Show contents of .csv file in Markdown

I have a C# solution that contains unit tests automatically generated from a .csv file via text templates.
The .csv file is a nice table for any team member to refer to, and serves as living documentation of the system.
We're running TFS 2015 and I understand that Markdown can be used in conjunction to provide clear system documentation.
Is it possible to use Markdown to display the contents of a .csv file (stored on the TFS server) within a table? So that if the .csv file is edited, the Markdown page reflects this?
For now, it's impossible. Detail info about Markdown page in TFS, please refer this tutorial: Markdown guidance
I have created a uservoice for you, you can vote up for it and TFS admin will kindly review the suggestion.
Show contents of .csv file in Markdown
https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/17749084-show-contents-of-csv-file-in-markdown
you can use dbeaver that will create a markdown table of your query result
click on export data and than:
next next
and in Output section check Copy to clipboard
click next and at the end click proceed
now you can copy your markdown text saved in your clipboard (this is the place where the system store data once you hit CTRL+C) insiede your markdown file

How to restrict Shiny fileInput to text files only?

I want to restrict my file browser to displaying only the types of file I specify, e.g. .txt files only. The only relevant snippets of a code I found are like the following:
fileInput("in_file",
"Input file:",
accept=c("txt/csv", "text/comma-separated-values,text/plain", ".csv")
However, this does't filter the files showing in the browser to just .txt and .csv. Any ideas?
As far as I understand, that's the right way to do it. If you view your app in the RStudio viewer it wouldn't do anything, but in a browser it should. I'm using Chrome and I just ran that code and it did in fact only show me txt and csv files.
Of course the user can still choose to view other files by going to the little select box and choosing to view all files, but they have to consciously choose to do that. By default only csv and txt files will be shown

sitecore - dot in rich text editor

I'm finding that some strange things are happening with my rich text editor in Sitecore 6.6. Some users have been entering content that is breaking items. Looking at the text it seems fine but when I copy the text into notepad I can see this dot character "ยท"
Any time this is in the text editor clicking Show Editor does nothing and I can't view raw values either. When I click Edit Html the edit box comes up but my changes will never save, the only way I can seem to fix these pages is if I update the content straight into the database.
Is there a way I can:
Prevent these characters from getting into the database,
Update the content without having to run update statements on the database?
Thanks in advance.

XFDF pdf opening in same window in IE

I'm working on a project that collects data from the project then displays it using xfdf to populate a .pdf file. Now when I use Chrome or Firefox it opens in a new tab which is exactly what I want, but some of my clients will be using IE, which opens it in the same window and causes some confusion. What area of the code should I be looking at in order to tackle and solve this problem?
I can show code examples, just let me know what I need to show.
Thanks,
Steve
Edit: When I click 'Print Application' button, it asks me to save or open the file. When they click open, it opens in the same tab, I want it to appear in a new tab.
In my experience, the best way to accomplish this is to alter your template linking to the PDF. For example:
Clicky!
This should work in all browsers.