everdark / ggplot2_lecture_dsc2014

Place to store my slides for DSConf 2014 in Taipei
0 stars 4 forks source link

#28 不能用 load() 來讀檔 要用 data() #10

Closed suensummit closed 10 years ago

suensummit commented 10 years ago

> load('salary.RData')
Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
In addition: Warning message:
In readChar(con, 5L, useBytes = TRUE) :
  cannot open compressed file 'salary.RData', probable reason 'No such file or directory'
> par(family='Heiti TC Light') # for OS X (XQuartz device)
> hist(salary_2013$平均工時, main=NULL)
Error in hist(salary_2013$平均工時, main = NULL) : 
  object 'salary_2013' not found
suensummit commented 10 years ago

om win 7

suensummit commented 10 years ago

SOLUTION


load("~/R/win-library/3.1/DSC2014Tutorial/Visualization/slide1/salary.RData")
mansunkuo commented 10 years ago

data(salary, package="DSC2014Tutorial")

everdark commented 10 years ago

其實已經是使用data(salary, package="DSC2014Tutorial"),但不知為何沒整到Tutorial套件裡。

everdark commented 10 years ago

看起來是之前index.html沒有更新到的樣子,只有index.Rmd改到。最新版已修正。