#https://cran.r-project.org/web/packages/progress/progress.pdf
pacman::p_load(progress)
## Basic
pb <- progress_bar$new(total=100)
for (i in 1:100) {
\tpb$tick()
\tSys.sleep(0.1)
}
from tqdm import tqdm
import time
total = tqdm(range(100))
for n in total:
time.sleep(0.1)
표현방법에 따라 format 설정
[============================================================] 100%
## ETA (estimated time of arrival!)
pb <- progress_bar$new(total=100, width=60, clear=F,
\tformat = " Downloading [:bar] :percent ETA= :eta")
for (i in 1:100) { pb$tick(); Sys.sleep(0.1)}
Downloading [===========================>----] 80% ETA= 2s
## Elapsed time with Spinner
pb <- progress_bar$new(total=100, width=60, clear=F,
\tformat = " (:spin) [:bar] :percent IN :elapsed")
for (i in 1:100) { pb$tick(); Sys.sleep(0.1)}
(/) [====================================>----] 90% IN 9s
에러 Sudo R 해결 https://stackoverflow.com/questions/9689104/installing-r-on-mac-warning-messages-setting-lc-ctype-failed-using-c Open Terminal Write or paste in: defaults write org.R-project.R force.LANG en_US.UTF-8 Close Terminal (including any RStudio window) Start R
https://departmentfortransport.github.io/R-cookbook/dates-times.html string –> time 시각 시간 as.difftime https://onesixx.com/lubridate/ hms https://campus.datacamp.com/courses/working-with-dates-and-times-in-r/problems-in-practice?ex=5 hh:mm:ss format ‘difftime’ class를 기본 자정부터 second의 numeric vector (digits.secs 옵션으로 micro secound까지 표현 가능) cron https://stackoverflow.com/questions/22659947/r-how-to-handle-times-without-dates package chron requires extra work to add seconds, and time Read more…