需要將R部屬在後台,利用系統做排成自動執行,並儲存log檔以利後續DEBUG
排程(linux)可以利用crontab 來做 Linux 固定排程。
每五分鐘執行一次,參考網址:連結
排程設定`在linux中創立一個.sh檔內容為:
Superset is fast, lightweight, intuitive, and loaded with options that make it easy for users of all skill sets to explore and visualize their data, from simple line charts to highly detailed geospatial charts.
在伺服器中安裝R,但遇到了很多很多問題,故寫這篇作為筆記。
在ubuntu中,通常只要會下載tar.gz檔,就可以安心的使用R了,但是在CentOS卻會遇到很多套件沒有安裝,而無法安裝R。以下開始那簡述這些ERROR。
首先是下載並解壓縮R的部份--這裡沒有ERROR~~~
wget https://mirrors.aliyun.com/CRAN/src/base/R-3/R-3.4.4.tar.gz
比較read.csv跟data.table::fread 兩種讀取速度
相同資料 時間相差 34倍
紀錄線上課程中,提到的方法
1.利用JS在HTML中建立tag例:建立table TAG
var table=document.createElement("table")
2.在JS中,獲取HTML中的TAG物件,並使用例:獲取table(id=TableID)物件
The renv package is a new effort to bring project-local R dependency management to your projects. The goal is for renv to be…
renv
pip install virtualenv
virtualenv venv virtualenv venv — python=python2.7 #創建並指定PY版本
利用GIT LAB做CICD自動部屬
下表中表示 git會交給runner做三件事:build → deploy
stages:
- build
sudo docker run -dit -p 8787:8787 -e ROOT=TRUE -v /home/allen/Rwd/:/home/rstudio -e PASSWORD=toyo123 rocker/rstudio