Closed temospena closed 3 years ago
You should install R before installing RStudio.
This is a wrapper for a friendly usage of R.
Open RStudio (not R !).
If you type sessionInfo() at the console, it will show you the packages you have with your installation.
sessionInfo()
You can install packages by the menu on the Packages tab
Try to install readxl(to deal with MS Excel files). It will install also some dependent packages.
readxl
You may also type in the console the packages or group of packages you'd like to install. Try to install these three packages with the console:
tidyverse
RColorBrewer
devtools
Type
install.packages(c("tidyverse","devtools","RColorBrewer"))
Even if you want only one package, the command is in plural :)
simply by calling them
library(tidyverse) librar(readxl) ...
When you restart R (Ctrl + Shift + F10) you'll need to load packages again.
Ctrl + Shift + F10
You can click here at the upper left icon, and select R Script Or Ctrl + Shift + F Or in the console, type file.edit("startup.R)
Ctrl + Shift + F
file.edit("startup.R)
Start by typing the aim of that script, commented with a cardinall (#) You can comment/uncomment any line by selectin it and press Ctrl + Shift + C
Ctrl + Shift + C
Save the script .
See r.rosafelix.bike for some R tips to use in Transport Demand Modeling ! (em português)
######################
install pandoc (https://pandoc.org/installing.html)
To make your outputs online at your IST server space
Donwload at: https://filezilla-project.org/download.php?type=client
Passado para um Rmd.
How to install R and RStudio
Installation
You should install R before installing RStudio.
Install R
Install RStudio
This is a wrapper for a friendly usage of R.
Install basic packages
Open RStudio (not R !).
If you type
sessionInfo()
at the console, it will show you the packages you have with your installation.You can install packages by the menu on the Packages tab
Try to install
readxl
(to deal with MS Excel files). It will install also some dependent packages.You may also type in the console the packages or group of packages you'd like to install. Try to install these three packages with the console:
tidyverse
- a group of basic packages to deal with data trames and graphics,RColorBrewer
- a package to use beautiful color palettes, anddevtools
- a package to deal with the development versions of packagesType
Load packages
simply by calling them
When you restart R (
Ctrl + Shift + F10
) you'll need to load packages again.The R dashboard
R script
You can click here at the upper left icon, and select R Script Or
Ctrl + Shift + F
Or in the console, typefile.edit("startup.R)
Start by typing the aim of that script, commented with a cardinall (#) You can comment/uncomment any line by selectin it and press
Ctrl + Shift + C
Save the script .
Working directory
Flavors
######################
R markdown
install pandoc (https://pandoc.org/installing.html)
Filezilla
To make your outputs online at your IST server space
Donwload at: https://filezilla-project.org/download.php?type=client