Control format of dataframes/tibbles displayed inline from Rmd chunk output - rstudio

When I want to display a dataframe inline I never know which of the two formats it will appear as. For instance, mtcars often appears as:
Other times the dataframe will be formatted with up-down and left-right scrolling options.
Is there anyway to control this output style?
I've updated my RStudio version to 1.1.456 and tried paged.print=FALSE in the chunk options but cannot make the scroll view appear.

The code chunk option paged.print controls this behavior. You can change it by writing the argument yourself, or you can click the gear icon for a code chunk and select/deselect the option there:

Related

Setting ENABLED to property_false for combo box list item does not alter the prompt foreground color

Using Oracle Form Builder 10.1.2.3.0, I have a List Item of type Combo Box with a Prompt and next to it in the same Block is a CheckBox.
When I disable these two items with
SET_ITEM_PROPERTY('block.item', ENABLED, PROPERTY_FALSE);
the CheckBox and its prompt go gray but the prompt portion of the List Item does not change. This makes the form and its developer look ridiculous.
Is this a bug?
To accomplish what I want I have to execute these when the List Item's enablement changes:
set_item_property('block.item', foreground_color, 'r150g150b150')
set_item_property('block.item', foreground_color, 'r70g70b70')
And these are just guesses because the color meter app is not perfect.
Half of the problem would "go away" if I could use a visual attribute but the form builder app complains about the "gray" color not being named.
Surely there is a better solution. Maybe playing with the LAF? But I have yet to figure out LAF customization.
I would not expect the prompt to change, but the edit area where text is entered will change. There is one exception. If running with colorScheme SWAN or BLAF the text edit are will always remain white unless you explicitly change the color. This is expected behavior.
If you are using SWAN or BLAF, which EBS does, by setting readOnlyBackground=true you can cause the edit area to go from white to a non-white color (the exact color will depend on the colorscheme in use). Because this parameter is not in the config by default it would need to be added manually and also added to the html template file.

Tool Tips for macOS folders’ "Comments" field

If notes (as opposed to simple category phrases) are written in the Comments field of macOS folders, is there a way using Automator (or whatever) to simply hover over the folder and see the contents of that field as a tooltip?
I don't believe it's possible to create such a hover effect.
However, you can just show the comments continuously:
View -> as List
View -> Show View Options
Show Columns: Comments (and maybe Tags?)
Or right click on the column headers to quickly change the columns being shown.
The advantage here (besides being possible) is that you do not have to wait for the tooltip to appear. Apologies, however, if this doesn't fit the workflow you had in mind.

RStudio: Move Code to Center of Editor

I am not sure if this is a reasonable expectation or whether there are other IDEs that have this feature, but when I am writing code in the RStudio editor, once I have written a sufficient amount of code, I am basically always editing at the bottom of the screen:
Is there a way to move the code to the middle of the screen without having to type "Enter" a bunch of times (trailing newlines are code too :-))?
You can keep scrolling by clicking an option in the settings:
Tools -> Global Options -> Code -> Display -> Allow scroll past end of document
This only affects scripts, and not the console.
So, uh.. you got some more of that fake internet points?

How do I add an imshow option when right clicking on an item in MATLAB workspace?

I want to add another option when right clicking on MATLAB workspace items. I would like imshow to also appear in the menu:
You have to dig a little more. Those options displayed are what people frequently use when deciding to plot a 2D matrix. If your desired option isn't there, you have to go to Plot Catalog... (very last option at the bottom of the pop-up menu in your image) and choose the plot you want. In your case, you have to go to Image Plots, then choose the rig
Here's the window I get when I load up the onion.png image that's part of the image processing toolbox:
im = imread('onion.png');
The last option is imshow, which is what you need. However, I think this is more invasive than just typing in imshow(im); or whatever the variable name is called. You can also get MATLAB to autocomplete the variable by using TAB in the Command Prompt to save time. I personally think it's more quicker to type it in rather than having to wait for the Plot Catalog window to open.... then again, that's just me.
I think I found a workaround for that. On the Plots tab, right clicking on the imshow function lets me add it to the quick access toolbar. now I simply click on the variable on workspace and then press alt + 1 and Voila ! :)

Jqgrid edit row auto-resize option

Do we have a auto-resizing option for jqgrid edit mode. I use edit cell and say if the user has large text then, on double click it enters the edit mode, its likely that user cant read the text because that looks like text field is of fixed length. Is there a way we can resize it so that user can see the entire content/text.
If you are finding inline edit too restrictive, you might want to consider opening a dialog to edit a row instead. For example, the dialog could have plenty of space for your large text field.

Resources