RStudio Quarto document not displaying in View pane - rstudio

Environment:
Windows 10 Enterprise
RStudio 2022.02.3 Build 492
Quarto 0.9.629
When I try to render any Quarto html file (include the default file) with the "Preview in Viewer Pane" option selected, the viewer pane returns the message "Internal server error." I've confirmed that the file is created.
When I knit an RMarkdown html file with the "Preview in Viewer Pane" option selected, the viewer pane correctly returns the output.
Any suggestions?

Related

SSRS Export to Excel

I have a SSRS report with Hyperlinks to 2 other SSRS report, through the Actions tab I am passing a parameter value to those hyperlinks, main report is exported to Excel and link is there everything is fine.
"=http://[SERVER]/[RSSERVER]/Pages/ReportViewer.aspx?[REPORTName]&rs:FORMAT=EXCEL&[ParemterName]=" &[ParameterValue]
When I myself click any of the hyperlink after exporting the report in Excel it opens a browser window and downloads (in my Download folder) the linked rdl in excel format with its actual rdl name .XLS and that's the expected correct operation without giving me any security warning in Excel and I can click on other hyperlink to other report.
But for all other users when they click the hyperlink first they receive a security warning about opening a harmful link and when user clicks OK it opens the link but the filename is ReportViewer.XLS so if user do not close that file and click on other hyperlink it will not download it because ReportViewer.XLS is already opened.
I have checked with couple of users their Excel Options are identical to mine.
I am not sure what is the causing this issue.
Thanks,

How to open a file in the current editor panel from the Explorer in Visual Studio Code?

I can select the explorer tab in Visial Studio Code by pressing CMD+0.
From there I can open a file in a new editor tab by pressing CTRL+Enter.
Enter starts renaming
CMD+o shows the open file window
But how can I just open the file in the current editor panel without creating a new tab?
We can see in the screenshot that the "selected" (silhouetted) file in the Explorer panel was able to be opened via CTL-Enter: but it is in a new editor panel to the right :
![enter image description here
Let's open another file now using CTL-Enter: we can see there are now three editor panels:
That's clearly going to get problematic pretty rapidly..
Its "SPACE". At least in my installation.
The corresponding setting is filesExplorer.openFilePreserveFocus

Set Sublime Text 3 as a default .txt editor on Windows 10

How could I set Sublime Text 3 as a default .txt editor on Windows 10?
Here is what I tried:
1 Open cmd.exe as administrator.
2 Type: ASSOC .txt=D:\Installations\Sublime\Sublime Text 3\sublime_text.exe
[![enter image description here][1]][1]
[![enter image description here][2]][2]
But I after that when I go to any .txt file and open it it still opens with a default Windows Notepad. What am I missing here? Thank you.
Here is an attempt to change the default open with app as described in the answer
[![enter image description here][3]][3]
[![enter image description here][4]][4]
[![enter image description here][5]][5]
[![enter image description here][6]][6]
As you can see the .txt file continues to open up with the default Windows Notepad.
[1]: https://i.stack.imgur.com/I6YNL.png
[2]: https://i.stack.imgur.com/U9HV8.png
[3]: https://i.stack.imgur.com/8ZFmC.png
[4]: https://i.stack.imgur.com/vVQyV.png
[5]: https://i.stack.imgur.com/ogoHy.png
[6]: https://i.stack.imgur.com/CMiOv.png
If you're talking about .txt files, simply right-click on one, select "Open with", "Choose another app", select Sublime Text in the list and then check "Always use this app to open .txt files". If you don't see Sublime Text listed, go at the bottom of the list and click on "Look for another app on this PC" and browse to the Sublime Text executable, which should be:
C:\Program Files\Sublime Text 3\sublime_text.exe
Reference: https://forums.malwarebytes.com/topic/201012-set-default-text-editor/
Okay, here is a workaround:
Create a dummy file with the extension you wish to default to your program. The file can be empty.
Right click on the dummy file and select Properties.
On the General tab there is a section that states:
Type of file:
Opens with and a button that says .
Click Change.
How do you want to open files from now on? Choose .
Scroll to the bottom and select
Go to C:\Program Files\Sublime Text 3\sublime_text.exe and select and select
Close Properties and your done!

How to install a font in Windows 7

I'm trying to install Source Code Pro and the Windows documentations says
Open Fonts by clicking the Start button Picture of the Start button,
clicking Control Panel, clicking Appearance and Personalization, and
then clicking Fonts.
But I don't see fonts listed.
I was able to install Anonymous Pro by clicking on the downloaded .ttf file and choosing install, but Source Code Pro is a little different.
-- Edit 1
I was able to get to %windir%\fonts but the next line of the documentation says:
Click File, and then click Install New Font.
And when I click File, I don't see an "Install New Font" menu option.
-- Edit 2
I just downloaded the font binaries from sourceforge and installed it by clicking on the .ttf file.
Just press start+r on your keyboard and then type fonts. Press ok and that's it.

How do I get Firefox to launch Visio when I click on a linked .vsd file?

On our intranet site, we have various MS Office documents linked. When I click on a Word, Excel or PowerPoint file, Firefox gives me the option to Open, Save or Cancel. When I click on Open, the appropriate app is launched and the file is loaded. This is perfect. But for some reason, when I click on a linked Visio file, I only get the option to Save, which is inconvenient.
I know that Firefox knows the linked file is a Visio file because it tells me so in the dialog box: "You have chosen to open example.vsd which is a: Microsoft Visio Drawing".
How can I make Firefox launch Visio when I click on a linked Visio file?
Update:
Firefox is not launching Visio when I click on a linked Visio file because the web server does not identify the content-type correctly. It identifies the Visio file as application/octet-stream instead of application/x-visio. (Thanks Grant Wagner.) This explains why it doesn't work. And in my case, I may be able to get the Apache config file changed, but this is not certain.
However, I would love to know if there is a way to configure Firefox itself to launch Visio based on some other criteria, like file name extension. This way I can open Visio files even if I don't have access to the Apache configuration.
#Dean
There are only two buttons in the dialog box: "Save File" and "Cancel". The "Open with" option is not there at all.
But I think I know what you mean. Sometimes, the "Open with" option is grayed out and only becomes available a moment later. Unfortunately that's not the case here.
If Open With is not available, the most likely cause is that Firefox does not know the MIME type of the document and is assuming it is application/octet-stream, or your web server is serving up files that end in .vnd as application/octet-stream (or some other binary-only MIME type).
To confirm this, download LiveHTTPHeaders and use it to confirm that the MIME type of the file is application/x-visio.
Edit the file %appdata%\Mozilla\Firefox\Profiles\your profile\mimeTypes.rdf
Add in the following
<RDF:li RDF:resource="urn:mimetype:application/vnd.visio"/>
<RDF:Description RDF:about="urn:mimetype:externalApplication:application/vnd.visio"
NC:prettyName="VISIO.EXE"
NC:path="FULL PATH TO YOUR VISIO\VISIO.EXE" />
<RDF:Description RDF:about="urn:mimetype:application/vnd.visio"
NC:value="application/vnd.visio"
NC:editable="true"
NC:fileExtensions="vsd"
NC:description="Microsoft Visio Drawing">
<NC:handlerProp RDF:resource="urn:mimetype:handler:application/vnd.visio"/>
</RDF:Description>
<RDF:Description RDF:about="urn:mimetype:handler:application/vnd.visio"
NC:alwaysAsk="false">
<NC:externalApplication RDF:resource="urn:mimetype:externalApplication:application/vnd.visio"/>
<NC:possibleApplication RDF:resource="urn:handler:local:FULL PATH TO YOUR VISIO\VISIO.EXE"/>
</RDF:Description>
This is working for me under Firefox 3.6.3 under Windows XP SP2
Added extension 'OpenDownload' which resolved the issue.
Go under Tools, Options.. in firefox, then when the options box comes up go to applications, there you can set all extensions and launch conditions. Actually it's termed "Content Type" and "Action" there...
If the behavior is similar to opening an Application, all you need to do is click the Open/Save dialog and the Open button will become available about a second later. Does this help?
Going under Tools | Options... doesn't seem to work, as after doing so you get an error that an unknown error occurred opening the file.
However, if you install the OpenDownload extension, then you get a run button which successfully runs Visio.
THe problem is with the VSD File type.
Open Windows Explorer
Menu / Tools / Folder options
Click on the File Type TAB
Locate the VSD file type (just type v s d > it will get You there)
There are two Buttons: [Modify] and [Special] -- Click on the [Special] button
--- The Actions associated with the file are listed
You have to add the Open option:
Add the path to Visio as follows:
"C:\Program Files[## correct PATH##]\VISIO.EXE" /e
(Just check how an other filetype is setup, e.g.: DOC or XLS)
Also there is the option: Browse in same window.
Uncheck the Browse in same window. checkbox,
Click [OK]
and there You go! The browser should ask if You want to open or download the file.
and one You mark Your option and remove the checkbox from "Always Ask for this Filetype..." Your VSD Document should open directly in Visio.
Hope this Helps, BR, Zoltan Gajdatsy
Step-by-step:
On Firefox, go to a site with the file, right-click on a vsd or vsdx file and select download.
On the download window, mark remember my choice option.
Go under tools > options > application, search for visio type and change dropbox to "open with" and then, localize the application you wish use.
I tested this on Firefox 33.0.2 accessing files in Sharepoint.

Resources