Managing preinstalled snippets in Atom editor - atom-editor

I've installed Atom editor, which comes with snippets legal and lorem (they are suggested every time I type " l", which is... well, redundant). I have 2 questions.
How to turn them off (and manage installed snippets in general)?
How to change their keybindings?

My question was about the two preinstalled snippets, so it wasn't a duplicate, and has a specific, easy answer that I'll give myself:
Ctr-, > Packages > language-text > Disable.
One way to change legal and lorem keybindings is to play w/ Settings > Packages > autocomplete-plus > Settings (e.g. w/ "Use strict.." and "Minimum word length"). There may be other ways under Ctr-, > Packages > language-text (haven't looked at it recently, as I was only interested in disabling it).

To manage your snippets, refer this answer
You could use keybinding-cheatsheet , Second Link package for Atom to manage your keybindings, quickly view and filter atom keybindings

Related

Setting up R in Atom: How to Run a Help Page

I successfully set up R in my new Atom editor and can get in-line results using the Hydrogen package. I just noticed, however, that when I run lines to obtain "R Documentation" that would pop up automatically in RStudio, Hydrogen only gives me a check mark in-line result with no associated documentation.
Here is what is going on in my Atom editor when I run ?plot
Here is what happens in RStudio (bottom right pane), which I am hoping I can get in Atom
How can I get this working in Atom?
try hydrogen -> Toggle inspector
I had the same question and actually made a little progress. Perhaps someone more experienced than I can use this to make a package to enable an in-atom help documentation panel for us :)
Anyway you can install the atom package 'script' which will properly output some, but not all, help documents. I have an example of one working & one not working.
Working ?read.csv
Not-working ?geom_bar

Where is the vim semi colon mode for Atom text editor?

I have vim-mode-plus installed on atom, however I can't execute commands like ":w" or ":wq" etc.
I believe the mode is called "ex mode". However I thought "semi colon mode" may translate better for some beginning vimmers (vimmers == vim users).
You need to install another atom package called "ex-mode".
This restores most of vim's functionality. The packages ex-mode and vim-mode-plus has made it so that I don't see much difference in functionality between Atom and vim. This being said, my experience with vim hasn't been for long and hasn't been as in depth as others.
Note: I found this simple answer hard to google, so I posted this question + answer.

Change default skeletons for RStudio

RStudio has a wonderful set of skeletons for packages and Rmd documents. But, I'd like to know if it's possible to change the defaults to a "skeleton" of your own design. If, like me, you package your research for yourself/clients, you quickly find yourself deleting and copying the same work over and over.
I suppose there are two related questions here:
Can you change the default package skeleton?
Can you change the default Rmd skeleton?
There is no supported way to do this. However, the skeletons are stored as ordinary files in your filesystem, so there's nothing stopping you from modifying them. For instance, if you're on the Mac, this file provides the default Rmd skeleton:
/Applications/RStudio.app/Contents/Resources/resources/templates/r_markdown_v2.Rmd
On Windows, it's here:
C:\Program Files\RStudio\resources\templates\r_markdown_v2.Rmd
I didn't realize it then, but I was actually looking for a custom format. The details of which are documented extensively on the rmarkdown rstudio site.
http://rmarkdown.rstudio.com/developer_custom_formats.html

Github atom editor shows line deleted and added back

I am using Github's atom text editor.
Most of the times, when I modify a single line in a file, git diff shows a lot of lines as deleted and added back in this way
- #op_contact = "Not Available"
+ #op_contact = "Not Available"
This causes inconvenience in code-reviews and hence I am forced to use other editors like SublimeText.
It looks like some simple setting should fix this, but I am not sure how to do it and I don't know what to search for. There are some related questions, like this one but I want to fix it from Atom editor, as this problem is not present in SublimeText.
Atom version: 1.3.1
You are probably searching for the Whitespace package which ships with Atom by default.
It removes unnecessary whitespace at the end of each line. Disable it and your suspicious line changes should be gone.

Calling summaryCoding() in RQDA raises an error

I'm attempting to use the RQDA package. I've tried to use the summaryCoding() (or SummaryCoding() or summarycoding() ) command with no success. getCodingTable() works fine.
You forgot the "s" at the end of the word codings, it should be:
summaryCodings()
(respect the capitals letters too, R is case sensitive). To avoid this kind of issues you may use Rstudio, which provides code completion. I've made tutorials on YouTube in French, you can find them here. To install R Studio watch video 2 3 or 4 (windows linux or mac). To see how to use the command prompt watch video 20. It's all in French but by watching the videos you can understand it even if you don't speak french.
well after coding you can put your code into category code. Sometimes the same code goes to many category codes. Then you can create a graph (cf. video 18). You have also the crossCodes()... But usually it's quite difficult to put a lot of numbers in a qualitative study. Personally speaking i retrieve the codes per "code category" and I do not hesitate to cite a lot of codes in my written analysis document. And if my files are interviews, I usually link the opinion of the speakers with other studies from a science article, for instance...

Resources