File: progress-types.md

package info (click to toggle)
r-cran-cli 3.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,288 kB
  • sloc: ansic: 16,412; cpp: 37; sh: 13; makefile: 2
file content (129 lines) | stat: -rw-r--r-- 2,672 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# iterator

    Code
      out
    Output
      [1] "\r===============>---------------   50% | ETA:  1s\033[K\r"
      [2] "\r\033[K"                                                  

---

    Code
      out
    Output
      [1] "\r\\ 50 done (100/s) | 3ms\033[K\r" "\r\033[K"                          

# tasks

    Code
      out
    Output
      [1] "\r\\ 50/100 ETA:  1s | \033[K\r" "\r\033[K"                       

---

    Code
      out
    Output
      [1] "\r\\ 50 done (100/s) | 3ms\033[K\r" "\r\033[K"                          

# download

    Code
      out
    Output
      [1] "\r==>---------------------------- |  53 kB/1.0 MB ETA:  1s\033[K\r"
      [2] "\r\033[K"                                                          

---

    Code
      out
    Output
      [1] "\r\\  53 kB (8.5 MB/s) | 3ms\033[K\r"
      [2] "\r\033[K"                            

# customize with options, iterator

    Code
      capture_cli_messages(fun("iterator", 100))
    Output
      [1] "\rnew format 50\033[K\r" "\r\033[K"               

---

    Code
      capture_cli_messages(fun("iterator", NA))
    Output
      [1] "\rnew format 50\033[K\r" "\r\033[K"               

---

    Code
      capture_cli_messages(fun("iterator", 100))
    Output
      [1] "\rnew format 50\033[K\r" "\r\033[K"               

---

    Code
      capture_cli_messages(fun("iterator", NA))
    Output
      [1] "\rnew too 50\033[K\r" "\r\033[K"            

# customize with options, tasks

    Code
      capture_cli_messages(fun("tasks", 100))
    Output
      [1] "\rnew format 50\033[K\r" "\r\033[K"               

---

    Code
      capture_cli_messages(fun("tasks", NA))
    Output
      [1] "\rnew format 50\033[K\r" "\r\033[K"               

---

    Code
      capture_cli_messages(fun("tasks", 100))
    Output
      [1] "\rnew format 50\033[K\r" "\r\033[K"               

---

    Code
      capture_cli_messages(fun("tasks", NA))
    Output
      [1] "\rnew too 50\033[K\r" "\r\033[K"            

# customize with options, download

    Code
      capture_cli_messages(fun("download", 1024 * 1024, 512 * 1024))
    Output
      [1] "\rnew format 524 kB\033[K\r" "\r\033[K"                   

---

    Code
      capture_cli_messages(fun("download", NA, 512 * 1024))
    Output
      [1] "\rnew format 524 kB\033[K\r" "\r\033[K"                   

---

    Code
      capture_cli_messages(fun("download", 1024 * 1024, 512 * 1024))
    Output
      [1] "\rnew format 524 kB\033[K\r" "\r\033[K"                   

---

    Code
      capture_cli_messages(fun("download", NA, 512 * 1024))
    Output
      [1] "\rnew too 524 kB\033[K\r" "\r\033[K"