search custom environment in RStudio panel - rstudio

I have defined a new environment:
myEnv <- new.env()
and defined new variables in this environments:
myEnv$data <- data1
The way I have set my options in RStudio, I see all defined variables in the right-upper panel in the tab "Environment". Above this panel, there is a drop-down menu which by default is set to "Global Environment". I was expecting to find the newly created environment myEnv in this drop-down menu, but it isn't. myEnv$data also isn't in the list of the global environment where I find data1 for instance.
Is there a way to view these objects in the panel? Seems like a basic question, but I could find anything, so sorry if duplicate.
RStudio Version 1.0.143

You can get it to appear in that panel by attaching it to the search list:
myEnv <- new.env()
myEnv$data <- 1:10
attach(myEnv)
and then looking through the drop down list. This also means that the data element of it will hide the data() function:
data
# [1] 1 2 3 4 5 6 7 8 9 10
Because attach() has such potential side effects, it's generally a good idea to avoid it.
So what can you do? One thing is to just click on the myEnv entry in the global environment. It will be expanded in a panel in the source pane (on the top left on my system, yours may be elsewhere) showing the contents. Not quite the same format as the Environment tab, but good enough to see what's going on.

Related

Shortcut to jump to a chunk in R Markdown?

Is there a shortcut to jump to a chunk in a R Markdown (on a Mac)? I'm looking for a way to quickly go between one chunk to another.
I'm not completely sure this is possible on Mac, but in RStudio for Windows you can select to show the «document outline» in the IDE. Not really a shortcut perhaps, but it can easily be used to jump to different named chunks in the R Markdown document by clicking it.
By default, I believe the outline is set to only show «Sections» (i.e. ## Header here), so to enable it to show named chunks, go to Tools -> Global options -> R Markdown -> Show in document outline. Then set it to «Sections and Named Chunks»
fn + Command + Up/Down works on the latest RStudio. It also jumps to heading sections.
This preference option exists on the Mac desktop RStudio as well.

Is it possible to set Wordwrap in WebStorm? I need to set by default all the files should be in wordwraping

is there any way to set word-wrap for all new/existing files should be in word-wrapping.
i need to set by default all the file in word-wrapping like notepadd++.
Thanks in advance.
Settings/Preferences | Editor | General | Use soft wraps in editor -- this setting affects all files.
You can disable or enable this option on per file basis (until it's closed) via View | Active Editor | Use Soft Wraps
More recent version (compared to the versions available when this question was answered) also have these options available in the Editor's gutter menu (right click in the area where the line numbers/breakpoints/etc are).
P.S.
Settings screen has very nice feature -- quick search box (top left corner) -- it does wonders. It allows you to quickly narrow the search scope of the specific setting by it's name (keyword).
You can also use "Search anywhere" (Shift two times) as well as "Find Action" (Help | Find Action... Ctrl + Shift + A) to search for individual settings.
Webstorm 9.0.3 Evaluation version on Windows 7:
I know I'm a bit late coming here, but if like me, you find that there's no "Use soft wraps in editor" option when you look in Settings>Editor>, i just discovered you can apply 'soft wrap' to individual files:
Open the file,
Left click the left margin (where the line numbers are),
You'll see "Use Soft Wraps" as an option you can turn on.
It's not quite what I wanted (change settings to apply to all files), but it's something.
Yes, it is possible. I have webstorm 2016. Follow these step.
Step 1:
This step may vary depending on OS used. Just search for preferences. I have screenshot for Mac.
Step 2:
Click on Editor twice. Note that arrow will change to downward position as shown.
Step 3 :
Click on general and see the option Use soft wraps in editor.
Step 4:
Select it and click ok
Settings (Preferences on Mac) | Editor | General | Use soft wraps in editor
Although its an old thread but updating as someone may find it usefull. In version 9.0.1, you have to select General inside Editor and then Use soft wraps in editor
Settings(ctrl+alt+s)--->Editor--->general--->use soft wrap in editor

Bash Autocomplete Ubuntu list all rather than cycle

On a fresh Ubuntu 12.04 install, my terminal tab-complete settings are configured such that the options are cycled through upon the second tab rather than what I am used to (listing all options and only completing what can be determined)
For example, in a directory containing listPixels.html and listPublishers.html, I want the a tab complete from
l
to simply complete
listP
and then a second tab should list all possible matches rather than cycling through listPixels.html and listPublishers.html on each subsequent tab.
You have menu-complete turned on. Simply rebind Tab to complete.
bind '"\C-i":complete'
I believe that's a setting in your .inputrc.
Use the line:
set show-all-if-ambiguous On

Mathematica quickie: About making cells Input cells by default

I'm going through some lecture notes, Fundamentals of Mathematica Programming (see the .nb file there). I'd like to be able to do the exercises right there in the notebook; but for some reason I can't figure out how to make the default cell an Input cell. In other words, when I'm clicking in that notebook to create a new cell--in the exercises--the cell is by default a text cell. I'd like for it to be an Input cell so that I don't have to manually change it each time. Ideas?
The default cell style of a vanilla Mathematica install should already be "Input". It sounds like you perhaps are using an edited default stylesheet or have changed the preferences.
For recent versions (6.0+), go to Preferences, and under the Evaluation tab, make sure "Style of newly typed cells" is set to "Input", and that the drop-down below it labeled "Format type of new input cells" is set to "StandardForm".
For older versions, make sure Cell → Default Input FormatType in the menu is set to StandardForm. To check/change the default cell input type, open Format → Option Inspector... in the menu and navigate to Cell Options → New Cell Defaults and set DefaultNewCellStyle to "Input".
You can set the scope of the Option Inspector to global or notebook in the dropdown at the top. The particular notebook you linked to has the default style set to "Text" which is the problem.

Eclipse: Improve debugging and display variable values on mouseOver

Is it possible to view variable values in Eclipse when debugging? Right now when I "mouse over" a variable all I get is the definition.
e.g. for [int mLastView] I get [com.company.samples.MyClass.mLastView] instead of 1. The value that was assigned to it.
Also, is there anyway to improve debugging in Eclipse?
For starter: making the breakpoints visible as in VS (see below)?
Eclipse Break Point
Visual Studio Break Point
I posted this over at Stack Overflow and one of the suggestions was to go into Window -> Preferences -> Java -> Editor -> Hovers and select the Variable Values option and assign a modifier.
When I was first trying to resolve this issue, this was one of the options I looked at, but oddly enough, there was no Variable Values preference available, it was missing. Once my “fix” above was applied, it magically appeared:
Click to see the pictureBroken Link
Actually, since eclipse3.4, not only do you see the value of a variable when you pass the mouse over it, you can actually inspect it:
When debugging, hovers for variables have been enhanced to display an object inspector. The inspector will display logical structures according to the toggle setting in the visible Variables or Expressions view.
If you hit the breakpoint while you are debugging, you do see the value of the variable when you mouse over. You can also select an expression, and inspect the value of it's evaluation using the "Inspect" menu option. You can also use the "Variables" view to see the current value of all in-scope variables.
About breakpoint visibility:
Right-click on the right outline of the editor, you'll see some Preferences, and there in Annotations you can select Breakpoints. I personally added Text as Highlighted and some pinky colour. Shame that the highlighting is really buggy, sticks here and there, breaks between lines, etc. But it somehow works for most cases.
(Another shame is that breakpoint bullet is often hidden behind some suggestion icon or what - why they can't make the gutter wider like Idea does, I don't know.)
I got similar but a little different problem with the thread-starter. Sometimes during debugging, I mouse over a variable, I see it current value. Sometimes it's just the definition, like in coding mode. So what caused the first case, what the second?
PS: Of course I can always choose to view Variables (Alt+Shift+Q,V) but it's faster if you have mouse over value instantly.
Thanks

Resources