Atom
- steps here are described using win10 and a WSL with ubuntu
Important Packages
- markdown-pdf (better protocol prints)
- minimap (shows a script minimap on the right side)
- linter (corrects scripts)
- and linter-shellcheck
- need also shellcheck in linux or powershell
- and linter-python
- needs pylama installed in python 3
- and linter-lintr
- don't install the auto-dependency on win10, go with "atom-language-r"
- add "C:\Program Files\R\R-3.5.1\bin\R.exe" to path of this
package
- install via R
install.packages("lintr")
- and linter-shellcheck
-
remote-atom (edit a remotely located script on your client via atom)
- you need to start the atom server in atom
Packages -> Remote Atom -> Start Server
- you need to install rmate on the host
bash curl -o /usr/local/bin/rmate https://raw.githubusercontent.com/aurora/rmate/master/rmate sudo chmod +x /usr/local/bin/rmate mv /usr/local/bin/rmate /usr/local/bin/ratom
- access host via
ssh -R 52698:localhost:52698 name@IP
- start a remote script like
rmate skript.sh
- you can rename rmate to ratom also for
ratom skript.sh
Installing shellcheck
- you need the linter package and the linter-shellcheck package in atom
- then you install shellcheck via scoop into windows directly via powershell
- check the scoop site for scoop installation
# In windows power shell type this:
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')`
scoop install shellcheck
- in atom go to the shellcheck package and enter the following path to it
C:\Users\<USERNAME>\scoop\apps\shellcheck\<VERSION>\shellcheck.exe
Installing pylama (corrects python scripts)
- you need to install the linter and linter-python package in atom
- also you need to install pylama in python3
# installing the pip3 from python3.X (not pip from python 2.7)
sudo apt-get install python3-pip ## use the apt-get for now
pip3 install pylama pylama-pylint ## dont use sudo here
- add this path to the settings of linter-python:
C:\Users\<USERNAME>\Documents\Atom_linter_shortcuts\python.bat
- in python.bat write the following line
wsl python3 -m pylama