Git Product home page Git Product logo

riii's Introduction

R 語言基礎

CLASS 1

CLASS 2

CLASS 3

CLASS 4

CLASS 5

Download R

Download RStudio

install R 3.5 on ubuntu16.04

step 1: add key

in terminal

gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -

step 2: add source

sudo vi /etc/apt/sources.list

貼上以下文字

deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/
deb http://debian.linux.org.tw/ubuntu/ bionic-backports main restricted universe

step 3: use apt-get install r

sudo apt-get update
sudo apt-get install r-base r-base-dev

write R code in jupyter notebook

step 1: open R in terminal, install all packages using the following lines

# in R console
> install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
> devtools::install_github('IRkernel/IRkernel')

if installing devtools failed:

sudo apt-get install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev

step2: install R kernel

#in R console
> IRkernel::installspec()

step3: start jupyter notebook, select R kernel

#in terminal
jupyter notebook

riii's People

Contributors

yuhsuanlin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.