Added R tips to the README.md
This commit is contained in:
parent
a9f9bdfdc5
commit
26bc6c0ea4
24
README.md
24
README.md
@ -1,3 +1,27 @@
|
||||
# assistenz-r
|
||||
|
||||
Projektarbeit Assistenzsysteme in R
|
||||
|
||||
## R commands
|
||||
|
||||
### Install new Packages
|
||||
First you need to open the R console with root privileges.
|
||||
>sudo -i R
|
||||
|
||||
Then you can install new packages.
|
||||
>install.packages("\<packagename>")
|
||||
|
||||
If an error occured, that a system package was not found, it may has to be installed via apt in the bash console, e.g. for libssl-dev:
|
||||
>sudo apt-get install libssl-dev
|
||||
|
||||
### Run the shiny server
|
||||
The server can be started with the following command in the bash console:
|
||||
>Rscript *<appname.r>*
|
||||
|
||||
After starting the server, a message with ip and a random port is printed into the console.
|
||||
>Listening on http://127.0.0.1:6056
|
||||
|
||||
To open the website when started in vs-code-server, you have to use the built in subfolder-proxy:
|
||||
>https://code.domain.tld/proxy/\<PORT>/
|
||||
|
||||
IMPORTANT: Don't forget the last '/', otherwise no ressources can be loaded by the website!
|
Loading…
Reference in New Issue
Block a user