GithubHelp home page GithubHelp logo

jonfu051 / dsc2014tutorial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from taiwanrusergroup/dsc2014tutorial

0.0 1.0 0.0 7.92 MB

台灣資料科學愛好者年會的資料科學上手課程的輔助用套件

R 100.00%

dsc2014tutorial's Introduction

安裝說明

  1. 請執行R.version檢查R 的版本。本次課程中需要3.1版本以上的R。如果是3.0的版本,安裝時會看到package ‘DSC2014Tutorial’ is not available (for R version 3.0.2)。升級方式請見下面的更新方式
  2. 請依據不同的OS在R console貼上下列script。如果有錯誤訊息,請參考以下的Q&A
  3. 有些講師投影片中的套件,在課程中用得較少。我們將這類套件放到Suggests之中。如果學員想要安裝這類套件好執行程式碼,請參考以下的Suggests安裝指南

Windows

install.packages('DSC2014Tutorial', repo = c('http://taiwanrusergroup.github.io/R', "http://cran.csie.ntu.edu.tw"), type = 'win.binary')

Ubuntu

請先安裝以下Ubuntu套件:

sudo apt-get install libcurl4-openssl-dev libxml2-dev espeak

再在R底下執行

install.packages('DSC2014Tutorial', repo = c('http://taiwanrusergroup.github.io/R', "http://cran.csie.ntu.edu.tw"), type = 'source')

Mac

請Mac User執行以下的Script:

deps <- available.packages("http://taiwanrusergroup.github.io/R/src/contrib")[1,"Imports"]
pkgs <- strsplit(gsub("\\s", "", deps), ",")[[1]]
for(i in seq_along(pkgs)) {
  # You can change your favorite repository
  if (require(pkgs[i], character.only = TRUE)) next
  install.packages(pkgs[i], repo = "http://cran.csie.ntu.edu.tw")
}
install.packages('DSC2014Tutorial', repo = 'http://taiwanrusergroup.github.io/R', type = 'source')

Q&A

  • ERROR: dependencies ‘wordcloud’, ‘gridExtra’ are not available for package ‘DSC2014Tutorial’
  • package ‘DSC2014Tutorial’ is not available (for R version 3.0.2)
    • 請更新R到3.1以上的版本。

更新方式

Mac

請至 http://cran.r-project.org/bin/macosx/ 下載

windows

參考資料

在R console鍵入

install.packages("installr"); require(installr) 
updateR()

Ubuntu

參考資料

首先移除舊版的R,在ubuntu指令列中鍵入

sudo apt-get remove r-base-core

接著手動更新sources.list,在ubuntu指令列中鍵入

sudo gedit /etc/apt/sources.list

在gedit編輯器中最下行增加下列文字

deb http://cran.rstudio.com/bin/linux/ubuntu trusty/

存檔,關閉gedit編輯器
新增Public Keys,在ubuntu指令列中鍵入

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

安裝新版R,在ubuntu指令列中鍵入

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

做完直接開啟R檢查版本即可

投影片

library(DSC2014Tutorial)
slides("Basic")
slides("ETL1")
slides("ETL2")
slides("DataAnalysis")
slides("Visualization1")
slides("Visualization2")
slides("Visualization3")

請執行以下的程式碼

deps <- available.packages("http://taiwanrusergroup.github.io/R/src/contrib")[1,"Suggests"]
pkgs <- strsplit(gsub("\\s", "", deps), ",")[[1]]
for(i in seq_along(pkgs)) {
  # You can change your favorite repository
  if (require(pkgs[i], character.only = TRUE)) next
  install.packages(pkgs[i], repo = "http://cran.csie.ntu.edu.tw")
}

dsc2014tutorial's People

Contributors

wush978 avatar dboyliao avatar wush-bridgewell avatar c3h3 avatar kuiming avatar ntuaha avatar chihchengliang avatar johnsonhsieh avatar readata avatar sk413025 avatar eit avatar

Watchers

Johnny Fu 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.