Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
kiwi98798
@kiwi98798
老師好,我是hahow上的學生,剛剛安裝您的互動套件的時候無法安裝,一直出現這個錯誤訊息:
Error in file(filename, "r", encoding = encoding) :
cannot open the connection
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
InternetOpenUrl failed: '安全通道支援發生錯誤'
我使用的R是3.3.3,也有在R studio上操作,試過防毒軟體關掉,還是顯示一樣的錯誤,請問我應該怎麼處理?謝謝
Wush Wu
@wush978
可能與https有關
我先試試看能不能重現
你是windows嗎?
kiwi98798
@kiwi98798
@wush978 是的,我是win10
今天再重試一下,還是顯示一樣的錯誤QUQ
Wush Wu
@wush978
昨天教課有同學遇到一樣的錯誤
要打開SSL 2.0 與TLS 2.0
你打開IE 後找到網際網路選項
裡面有相關設定
http://www.ntpu.edu.tw/rd/note/help8.html 類似這篇,但是連2.0也要開
Wush Wu
@wush978
@kiwi98798
kiwi98798
@kiwi98798
成功了,謝謝老師!這邊順便回報一下,我的IE選項沒有TLS2.0,不過我把我所有的TLS選項都打勾就可以安裝了~
黃鈺瑄
@410442005_gitlab
請問大家如何重頭開始課程呢,因為前面的不太熟悉想要重來一次 謝謝
Yanru Yang
@YangHarper

老師您好:我照安裝的指示在console輸入source("https://wush978.github.io/R/init-swirl.R")
結果一直出現以下內容:

source("https://wush978.github.io/R/init-swirl.R")
Loading required package: remotes
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/

There is a binary version available but the
source version is later:
binary source needs_compilation
remotes 1.1.1 2.0.4 FALSE

installing the source package ‘remotes’

trying URL 'http://cran.csie.ntu.edu.tw/src/contrib/remotes_2.0.4.tar.gz'
Content type 'application/octet-stream' length 117119 bytes (114 KB)
downloaded 114 KB

'D:\Program' 不是內部或外部命令、可執行的程式或批次檔。
Warning in install.packages :
running command '"D:/Program Files/R/R-33~1.3/bin/x64/R" CMD INSTALL -l "D:\Program Files\R\R-3.3.3\library" C:\Users\user\AppData\Local\Temp\Rtmp0gRl3D/downloaded_packages/remotes_2.0.4.tar.gz' had status 1
Warning in install.packages :
installation of package ‘remotes’ had non-zero exit status

The downloaded source packages are in
‘C:\Users\user\AppData\Local\Temp\Rtmp0gRl3D\downloaded_packages’
Loading required package: pvm
trying URL 'https://wush978.github.io/R/src/contrib/pvm_0.4.2.4.tar.gz'
Content type 'application/gzip' length 2989855 bytes (2.9 MB)
downloaded 2.9 MB

'D:\Program' 不是內部或外部命令、可執行的程式或批次檔。

The downloaded source packages are in
‘C:\Users\user\AppData\Local\Temp\Rtmp0gRl3D\downloaded_packages’
Error in loadNamespace(name) : there is no package called ‘pvm’
In addition: Warning messages:
1: running command '"D:/Program Files/R/R-33~1.3/bin/x64/R" CMD INSTALL -l "D:\Program Files\R\R-3.3.3\library" C:\Users\user\AppData\Local\Temp\Rtmp0gRl3D/downloaded_packages/pvm_0.4.2.4.tar.gz' had status 1
2: In utils::install.packages("pvm", repos = "https://wush978.github.io/R", :
installation of package ‘pvm’ had non-zero exit status
請問要怎麼排解?我R的版本是3.3, Rstudio是最新版的。謝謝老師~~

kouki_liu
@Rmj009
老師您好! 我有私訊您了
Wush Wu
@wush978
@YangHarper 我不太確定原因,猜測這可能是中文使用者路徑的問題。
你的使用者名稱包含中文嗎?
kouki_liu
@Rmj009
WUSH 大大您好,
請教您怎麼把以下的streaming和另一則的input接口兜再一起?
https://plot.ly/r/streaming/
https://luca-scr.github.io/qcc/reference/mqcc.html
kouki_liu
@Rmj009
最大的難處在於stream 每次的增量, 跟初始值怎麼設定?
Wush Wu
@wush978
厄,不好意思我沒有試過
kouki_liu
@Rmj009
https://wush.ghost.io/r-jsonlines/
所以與2015老師處理過的例子非常不一樣嗎?
是因為傳輸的格式非常不同? 謝謝老師
Wush Wu
@wush978
Hmm… 我那時候是寫到檔案,再從檔案讀出來
你的這個問題我不是看得很懂,用的技術(mqcc)我也沒用過
這是最完整的demo, 也是要呈現的重點
sunia74530
@sunia74530
不好意思 想請問 我在Database的課程中 其中dbWriteTable(db, "lvr_land2", lvr_land)這段 R一直顯示Error: Table lvr_land2 exists in database, and both overwrite and append are FALSE 這是發生了甚麼問題呢...?
哦~我看到有其他的同學問類似問題 我先來研究一下 感謝~
sunia74530
@sunia74530
我刪掉所有RSQLiteite的資料重新安裝(我是R3.3版本)還是沒用..反而出現一個沒看過的狀況 invalid multibyte string at '<e9><84><89>?桀<b8><8d>€',卡關了>"<
pinyu99
@pinyu99
請問在DataScienceAndR 03-RVisualization-03-ggplot2 這個課程進行到第29/79 的關卡,輸入skip() 後仍無法繼續課程應該怎麼解決呢?
SU, PIN-JUNG
@greentea01212_gitlab

不好意思 我安裝不了swirl 我用的是R3.3 錯誤碼如下
Loading required package: remotes
Warning in install.packages("remotes", repos = "http://cran.csie.ntu.edu.tw") :
'lib = "C:/Program Files/R/R-3.3.3/library"' is not writable

There is a binary version available but the source version is
later:
binary source needs_compilation
remotes 1.1.1 2.1.0 FALSE

installing the source package ‘remotes’

嘗試 URL 'http://cran.csie.ntu.edu.tw/src/contrib/remotes_2.1.0.tar.gz'
Content type 'application/octet-stream' length 131622 bytes (128 KB)
downloaded 128 KB

  • installing source package 'remotes' ...
    ** package 'remotes' successfully unpacked and MD5 sums checked
    Warning in file(file, if (append) "a" else "w") :
    cannot open file 'C:/Users/green/OneDrive/$e%s/R/win-library/3.3/remotes/DESCRIPTION': No such file or directory
    Warning in strsplit(msg, "\n") : 輸入的字串 1 不適用於此語言環境
    ERROR: installing package DESCRIPTION failed for package 'remotes'
  • removing 'C:/Users/green/OneDrive/文件/R/win-library/3.3/remotes'

The downloaded source packages are in
‘C:\Users\green\AppData\Local\Temp\RtmpCeCDBr\downloaded_packages’
Loading required package: pvm
Warning in utils::install.packages("pvm", repos = "https://wush978.github.io/R", :
'lib = "C:/Program Files/R/R-3.3.3/library"' is not writable
嘗試 URL 'https://wush978.github.io/R/src/contrib/pvm_0.4.2.4.tar.gz'
Content type 'application/gzip' length 2989855 bytes (2.9 MB)
downloaded 2.9 MB

  • installing source package 'pvm' ...
    Warning in file(file, if (append) "a" else "w") :
    cannot open file 'C:/Users/green/OneDrive/$e%s/R/win-library/3.3/pvm/DESCRIPTION': No such file or directory
    Warning in strsplit(msg, "\n") : 輸入的字串 1 不適用於此語言環境
    ERROR: installing package DESCRIPTION failed for package 'pvm'
  • removing 'C:/Users/green/OneDrive/文件/R/win-library/3.3/pvm'

The downloaded source packages are in
‘C:\Users\green\AppData\Local\Temp\RtmpCeCDBr\downloaded_packages’
Error in loadNamespace(name) : there is no package called ‘pvm’
此外: Warning messages:
1: 執行中命令 '"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\green\OneDrive\文件\R\win-library\3.3" C:\Users\green\AppData\Local\Temp\RtmpCeCDBr/downloaded_packages/remotes_2.1.0.tar.gz' 已有狀態 1
2: In install.packages("remotes", repos = "http://cran.csie.ntu.edu.tw") :
installation of package ‘remotes’ had non-zero exit status
3: 執行中命令 '"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\green\OneDrive\文件\R\win-library\3.3" C:\Users\green\AppData\Local\Temp\RtmpCeCDBr/downloaded_packages/pvm_0.4.2.4.tar.gz' 已有狀態 1
4: In utils::install.packages("pvm", repos = "https://wush978.github.io/R", :
installation of package ‘pvm’ had non-zero exit status

Wush Wu
@wush978
可能是你的路徑裡有中文
SU, PIN-JUNG
@greentea01212_gitlab
@wush978 可以安裝了 謝謝老師
sa-js
@sa-js
Bill671
@Bill671
老師您好,我也安裝不了swirl
回報碼如下

source("https://wush978.github.io/R/init-swirl.R")
Loading required package: remotes
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/

There is a binary version available but the
source version is later:
binary source needs_compilation
remotes 1.1.1 2.1.0 FALSE

installing the source package ‘remotes’

trying URL 'http://cran.csie.ntu.edu.tw/src/contrib/remotes_2.1.0.tar.gz'
Content type 'application/octet-stream' length 131622 bytes (128 KB)
downloaded 128 KB

  • installing source package 'remotes' ...
    package 'remotes' successfully unpacked and MD5 sums checked R
    inst preparing package for lazy loading
    help
    *
    installing help indices
    building package indices installing vignettes
    testing if installed package can be loaded
    *
    arch - i386
    * arch - x64
  • DONE (remotes)

The downloaded source packages are in
‘C:\Users\bill\AppData\Local\Temp\RtmpQHiS1A\downloaded_packages’
Loading required package: pvm
trying URL 'https://wush978.github.io/R/src/contrib/pvm_0.4.2.4.tar.gz'
Content type 'application/gzip' length 2989855 bytes (2.9 MB)
downloaded 2.9 MB

  • installing source package 'pvm' ...
    R inst
    preparing package for lazy loading help
    * installing help indices building package indices
    testing if installed package can be loaded
    *
    arch - i386
    * arch - x64
  • DONE (pvm)

The downloaded source packages are in
‘C:\Users\bill\AppData\Local\Temp\RtmpQHiS1A\downloaded_packages’
Download metamran from https://storage.googleapis.com/metamran-deploy/rda/bin-windows-contrib-3.3.rda to D:/R-3.3.3/library/pvm/rda/bin-windows-contrib-3.3.rda
trying URL 'https://storage.googleapis.com/metamran-deploy/rda/bin-windows-contrib-3.3.rda'
Content type 'application/octet-stream' length 236760 bytes (231 KB)
downloaded 231 KB

Installing rstudioapi (0.6) ...
Install rstudioapi (0.6) from MRAN snapshot of date 2017-09-09 for type: win.binary
Installing magrittr (1.5) ...
Install magrittr (1.5) from CRAN
Installing rappdirs (0.3.1) ...
Install rappdirs (0.3.1) from CRAN
Installing R6 (2.2.0) ...
Install R6 (2.2.0) from MRAN snapshot of date 2017-05-11 for type: win.binary
Installing openssl (0.9.6) ...
Install openssl (0.9.6) from MRAN snapshot of date 2017-09-09 for type: win.binary
Installing yaml (2.1.14) ...
Install yaml (2.1.14) from MRAN snapshot of date 2017-12-03 for type: win.binary
Installing digest (0.6.12) ...
Install digest (0.6.12) from MRAN snapshot of date 2017-12-14 for type: win.binary
Installing crayon (1.3.2) ...
Install crayon (1.3.2) from MRAN snapshot of date 2017-09-18 for type: win.binary
Installing bitops (1.0-6) ...
Install bitops (1.0-6) from CRAN
Installing curl (2.3) ...
Install curl (2.3) from MRAN snapshot of date 2017-03-25 for type: win.binary
Installing praise (1.0.0) ...
Install praise (1.0.0) from CRAN
Installing mime (0.5) ...
Install mime (0.5) from CRAN
Installing stringi (1.1.2) ...
Install stringi (1.1.2) from MRAN snapshot of date 2017-03-23 for type: win.binary
Installing jsonlite (1.3) ...
Install jsonlite (1.3) from MRAN snapshot of date 2017-04-09 for type: win.binary
Installing getPass (0.1-1) ...
Install getPass (0.1-1) from MRAN snapshot of date 2017-07-21 for type: win.binary
Installing stringr (1.2.0) ...
Install stringr (1.2.0) from MRAN snapshot of date 2018-02-20 for type: win.binary
Installing httr (1.2.1) ...
Install httr (1.2.1) from MRAN snapshot of date 2017-08-17 for type: win.binary
Installing RCurl (1.95-4.8) ...
Install RCurl (1.95-4.8) from MRAN snapshot of date 2017-12-27 for type: win.binary
Installing testthat (1.0.2) ...
Install testthat (1.0.2) from MRAN snapshot of date 2017-12-14 for type: win.binary
Installing memoise (1.0.0) ...
Install memoise (1.0.0) from MRAN snapshot of date 2017-04-22 for type: win.binary

There is a binary version available (and will be
installed) but the source version is later:
binary source
rstudio

ackage ‘openssl’ successfully unpacked and MD5 sums checked
Warning: unable to move temporary installation ‘D:\R-3.3.3\library\file147812f47529\openssl’ to ‘D:\R-3.3.3\library\openssl’

The downloaded binary packages are in
C:\Users\bill\AppData\Local\Temp\RtmpQHiS1A\downloaded_packages
Error: base::dir.exists(base::file.path(lib, pkg)) is not TRUE

Bill671
@Bill671
我的R有兩個版本,但我環境設定是設在3.3.3這個版本,安裝過程只有最後一段會出現error,其他安裝包都可以使用
sone-2007
@sone-2007
我把函數名稱打到consol後,一直出現null,然後找不到參數,請問應該如何尋找參數?
shun annie
@huskyfox_gitlab
Error in eval(ei, envir) : object 'n' not found
想問這是甚麼意思
Wush Wu
@wush978
@Bill671 看起來是最後搬資料夾的時候出錯
你檢查看看 D:\R-3.3.3\library\openssl 這個資料夾,是不是不能寫入(權限、硬碟滿了)等等

@sone-2007 應該用 args 這個函數
或是用 ? 打開help

舉例:要看 strsplit的參數,可以:

  1. args(strsplit)
  2. ?strsplit 後看help 頁面的說明
@huskyfox_gitlab n物件不存在。沒有前後文我比較難判斷真正原因。建議可以截圖後貼上來
Bill671
@Bill671
@wush978 老師您好,D槽空間還有800多GB,老師要我檢查的資料夾權限的部分除了特殊存取外都是打勾的
我有四個存取物件,Authenticated Users除了特殊存取跟完全控制外沒勾外,其他都有勾,System全勾除特殊存取外,Administer同system,Users沒有完全控制、修改、寫入,其他都有勾選
Bill671
@Bill671
那個前面那句"老師要我檢查的資料夾權限的部分除了特殊存取外都是打勾的"不要理會,是我只看到其中一個><,下面那個存取物件才是正確的
Wush Wu
@wush978
@Bill671 如果沒什麼異狀的話,就再試一次看看?