RWEPA | VirtualBox + Ubuntu + R + RStudio 簡介
🌸YouTube (包括中文字幕):https://youtu.be/DxZUj9quKEI
RWEPA | VirtualBox + Ubuntu + R + RStudio 簡介
🌸YouTube (包括中文字幕):https://youtu.be/DxZUj9quKEI
# 感謝 Uma 提供問題.
🌸YouTube (包括中文字幕):https://youtu.be/jsdM-y1nspQ
方法1 使用 RStudio \ Connections 視窗
方法2 使用 odbc::dbConnect+寫入密碼 --> 資安問題!
方法3 使用 odbc::dbConnect+詢問密碼
https://github.com/rwepa/r_mysql/blob/main/r_mysql.pdf
🌷下載: r_mysql.R
https://github.com/rwepa/r_mysql/blob/main/r_mysql.R
近日安裝 Windows 與 R之後會有以下 normalizePath 語法錯誤:
查詢發現電腦確實有以下之目錄 C:\Users\asus\OneDrive\文件, 因此最有可能原因是此路徑包括中文字型"文件", 因此R解析結果為錯誤??
使用 path.expand 函數亦是錯誤
> path.expand("~/")
[1] "C:/Users/asus/OneDrive/??/"
使用 normalizePath 函數也有錯誤
> normalizePath(path.expand("~/"))
[1] "C:\\Users\\asus\\OneDrive\\??\\"
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
path[1]="C:/Users/asus/OneDrive/??/": 檔案名稱、目錄名稱或磁碟區標籤語法錯誤。
變數名稱: HOME
變數值: C:\Users\asus
> path.expand("~/")
[1] "C:/Users/asus/"
> normalizePath(path.expand("~/"))
[1] "C:\\Users\\asus"
# end
R-4.2.0, RStudio-2022.02.2+485 - Windows更新事項
library(pryr)
ftype(apply) # "function"
apply
library(pryr)
ftype(apply) # "function"
apply
lapply
ftype(lapply) # "internal"
getAnywhere(lapply)
show_c_source(.Primitive(lapply(x)))
princomp
ftype(princomp) # "s3" "generic"
methods(princomp)
getAnywhere(princomp.default)
# end