Sharedlatex-tests / system.texOpen in CoCalc
Authors: harald @schil.ly, Testing CoCalc, John Jeng, Harald Schilly, Harald Schilly, ℏal Snyder, William A. Stein
1
\documentclass{article}\usepackage[]{graphicx}\usepackage[]{color}
2
%% maxwidth is the original width if it is less than linewidth
3
%% otherwise use linewidth (to make sure the graphics do not exceed the margin)
4
\makeatletter
5
\def\maxwidth{ %
6
\ifdim\[email protected]@width>\linewidth
7
\linewidth
8
\else
9
\[email protected]@width
10
\fi
11
}
12
\makeatother
13
14
\definecolor{fgcolor}{rgb}{0.345, 0.345, 0.345}
15
\newcommand{\hlnum}[1]{\textcolor[rgb]{0.686,0.059,0.569}{#1}}%
16
\newcommand{\hlstr}[1]{\textcolor[rgb]{0.192,0.494,0.8}{#1}}%
17
\newcommand{\hlcom}[1]{\textcolor[rgb]{0.678,0.584,0.686}{\textit{#1}}}%
18
\newcommand{\hlopt}[1]{\textcolor[rgb]{0,0,0}{#1}}%
19
\newcommand{\hlstd}[1]{\textcolor[rgb]{0.345,0.345,0.345}{#1}}%
20
\newcommand{\hlkwa}[1]{\textcolor[rgb]{0.161,0.373,0.58}{\textbf{#1}}}%
21
\newcommand{\hlkwb}[1]{\textcolor[rgb]{0.69,0.353,0.396}{#1}}%
22
\newcommand{\hlkwc}[1]{\textcolor[rgb]{0.333,0.667,0.333}{#1}}%
23
\newcommand{\hlkwd}[1]{\textcolor[rgb]{0.737,0.353,0.396}{\textbf{#1}}}%
24
\let\hlipl\hlkwb
25
26
\usepackage{framed}
27
\makeatletter
28
\newenvironment{kframe}{%
29
\def\[email protected]@[email protected]{}%
30
\ifinner\ifhmode%
31
\def\[email protected]@[email protected]{\end{minipage}}%
32
\begin{minipage}{\columnwidth}%
33
\fi\fi%
34
\def\FrameCommand##1{\hskip\@totalleftmargin \hskip-\fboxsep
35
\colorbox{shadecolor}{##1}\hskip-\fboxsep
36
% There is no \\@totalrightmargin, so:
37
\hskip-\linewidth \hskip-\@totalleftmargin \hskip\columnwidth}%
38
\MakeFramed {\advance\hsize-\width
39
\@totalleftmargin\[email protected] \linewidth\hsize
40
\@setminipage}}%
41
{\par\unskip\endMakeFramed%
42
\[email protected]@[email protected]}
43
\makeatother
44
45
\definecolor{shadecolor}{rgb}{.97, .97, .97}
46
\definecolor{messagecolor}{rgb}{0, 0, 0}
47
\definecolor{warningcolor}{rgb}{1, 0, 1}
48
\definecolor{errorcolor}{rgb}{1, 0, 0}
49
\newenvironment{knitrout}{}{} % an empty environment to be redefined in TeX
50
51
\usepackage{alltt}
52
\usepackage[utf8]{inputenc}
53
54
\title{knitr-test}
55
\author{Harald Schilly}
56
\date{July 2018}
57
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
58
\begin{document}
59
60
You can type R commands in your \LaTeX{} document and they will be properly run and the output printed in the document.
61
62
63
\begin{knitrout}
64
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
65
\begin{alltt}
66
\hlkwd{library}\hlstd{(knitr)}
67
\hlstd{opts_chunk}\hlopt{$}\hlkwd{set}\hlstd{(}\hlkwc{fig.path}\hlstd{=}\hlstr{'figure/latex-'}\hlstd{,} \hlkwc{cache.path}\hlstd{=}\hlstr{'cache/latex-'}\hlstd{)}
68
\end{alltt}
69
\end{kframe}
70
\end{knitrout}
71
72
\begin{knitrout}
73
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
74
\begin{alltt}
75
\hlcom{# Create a sequence of numbers}
76
\hlstd{X} \hlkwb{=} \hlnum{2}\hlopt{:}\hlnum{10}
77
78
\hlcom{# Display basic statistical measures}
79
\hlkwd{summary}\hlstd{(X)}
80
\end{alltt}
81
\begin{verbatim}
82
## Min. 1st Qu. Median Mean 3rd Qu. Max.
83
## 2 4 6 6 8 10
84
\end{verbatim}
85
\end{kframe}
86
\end{knitrout}
87
88
t
89
90
t
91
92
t
93
94
t
95
96
t
97
98
t
99
100
\begin{knitrout}
101
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
102
\begin{alltt}
103
\hlstd{fileConn}\hlkwb{<-}\hlkwd{file}\hlstd{(}\hlstr{"data.txt"}\hlstd{)}
104
\hlkwd{writeLines}\hlstd{(}\hlkwd{paste}\hlstd{(}\hlkwd{c}\hlstd{(}\hlnum{1}\hlopt{:}\hlnum{10}\hlstd{),} \hlkwc{collapse}\hlstd{=}\hlstr{", "}\hlstd{), fileConn)}
105
\hlkwd{close}\hlstd{(fileConn)}
106
\end{alltt}
107
\end{kframe}
108
\end{knitrout}
109
110
and output
111
112
\begin{knitrout}
113
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
114
\begin{alltt}
115
\hlstd{fileConn} \hlkwb{<-} \hlkwd{file}\hlstd{(}\hlstr{"data.txt"}\hlstd{)}
116
\hlstd{data} \hlkwb{<-} \hlkwd{readLines}\hlstd{(fileConn)}
117
\hlkwd{message}\hlstd{(data)}
118
\end{alltt}
119
120
121
{\ttfamily\noindent\itshape\color{messagecolor}{\#\# 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}\end{kframe}
122
\end{knitrout}
123
124
data: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.
125
126
t
127
128
\begin{knitrout}
129
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
130
\begin{alltt}
131
\hlkwd{system}\hlstd{(}\hlstr{"mount"}\hlstd{,} \hlkwc{intern} \hlstd{=} \hlnum{TRUE}\hlstd{)}
132
\end{alltt}
133
\begin{verbatim}
134
## [1] "none on / type aufs (rw,relatime,si=34223f5145629321,dio,dirperm1)"
135
## [2] "proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)"
136
## [3] "tmpfs on /dev type tmpfs (rw,nosuid,mode=755)"
137
## [4] "devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666)"
138
## [5] "sysfs on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)"
139
## [6] "tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,relatime,mode=755)"
140
## [7] "cgroup on /sys/fs/cgroup/systemd type cgroup (ro,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)"
141
## [8] "cgroup on /sys/fs/cgroup/blkio type cgroup (ro,nosuid,nodev,noexec,relatime,blkio)"
142
## [9] "cgroup on /sys/fs/cgroup/rdma type cgroup (ro,nosuid,nodev,noexec,relatime,rdma)"
143
## [10] "cgroup on /sys/fs/cgroup/hugetlb type cgroup (ro,nosuid,nodev,noexec,relatime,hugetlb)"
144
## [11] "cgroup on /sys/fs/cgroup/memory type cgroup (ro,nosuid,nodev,noexec,relatime,memory)"
145
## [12] "cgroup on /sys/fs/cgroup/cpuset type cgroup (ro,nosuid,nodev,noexec,relatime,cpuset)"
146
## [13] "cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (ro,nosuid,nodev,noexec,relatime,net_cls,net_prio)"
147
## [14] "cgroup on /sys/fs/cgroup/perf_event type cgroup (ro,nosuid,nodev,noexec,relatime,perf_event)"
148
## [15] "cgroup on /sys/fs/cgroup/freezer type cgroup (ro,nosuid,nodev,noexec,relatime,freezer)"
149
## [16] "cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (ro,nosuid,nodev,noexec,relatime,cpu,cpuacct)"
150
## [17] "cgroup on /sys/fs/cgroup/pids type cgroup (ro,nosuid,nodev,noexec,relatime,pids)"
151
## [18] "cgroup on /sys/fs/cgroup/devices type cgroup (ro,nosuid,nodev,noexec,relatime,devices)"
152
## [19] "mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)"
153
## [20] "10.99.185.156:/2018-06-11_1604_p4/linux/Ubuntu-16.04/lib32 on /lib32 type nfs4 (ro,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=30,retrans=3,sec=sys,clientaddr=10.240.0.13,fsc,local_lock=none,addr=10.99.185.156)"
154
## [21] "10.99.185.156:/2018-06-11_1604_p4/linux/Ubuntu-16.04/lib64 on /lib64 type nfs4 (ro,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=30,retrans=3,sec=sys,clientaddr=10.240.0.13,fsc,local_lock=none,addr=10.99.185.156)"
155
## [22] "tmpfs on /tmp type tmpfs (rw,relatime)"
156
## [23] "10.99.185.156:/2018-06-11_1604_p4/linux/Ubuntu-16.04/sbin on /sbin type nfs4 (ro,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=30,retrans=3,sec=sys,clientaddr=10.240.0.13,fsc,local_lock=none,addr=10.99.185.156)"
157
## [24] "10.99.185.156:/2018-06-11_1604_p4/linux/Ubuntu-16.04/usr on /usr type nfs4 (ro,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=30,retrans=3,sec=sys,clientaddr=10.240.0.13,fsc,local_lock=none,addr=10.99.185.156)"
158
## [25] "10.99.185.156:/2018-06-11_1604_p4 on /ext type nfs4 (ro,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=30,retrans=3,sec=sys,clientaddr=10.240.0.13,fsc,local_lock=none,addr=10.99.185.156)"
159
## [26] "10.99.185.156:/2018-06-11_1604_p4/linux/Ubuntu-16.04/opt on /opt type nfs4 (ro,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=30,retrans=3,sec=sys,clientaddr=10.240.0.13,fsc,local_lock=none,addr=10.99.185.156)"
160
## [27] "10.99.185.156:/2018-06-11_1604_p4/linux/Ubuntu-16.04/bin on /bin type nfs4 (ro,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=30,retrans=3,sec=sys,clientaddr=10.240.0.13,fsc,local_lock=none,addr=10.99.185.156)"
161
## [28] "10.99.185.156:/2018-06-11_1604_p4/linux/Ubuntu-16.04/libx32 on /libx32 type nfs4 (ro,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=30,retrans=3,sec=sys,clientaddr=10.240.0.13,fsc,local_lock=none,addr=10.99.185.156)"
162
## [29] "10.99.185.156:/2018-06-11_1604_p4/linux/Ubuntu-16.04/var on /var type nfs4 (ro,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=30,retrans=3,sec=sys,clientaddr=10.240.0.13,fsc,local_lock=none,addr=10.99.185.156)"
163
## [30] "10.99.185.156:/2018-06-11_1604_p4/linux/Ubuntu-16.04/etc on /etc type nfs4 (ro,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=30,retrans=3,sec=sys,clientaddr=10.240.0.13,fsc,local_lock=none,addr=10.99.185.156)"
164
## [31] "10.99.185.156:/2018-06-11_1604_p4/linux/Ubuntu-16.04/lib on /lib type nfs4 (ro,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=30,retrans=3,sec=sys,clientaddr=10.240.0.13,fsc,local_lock=none,addr=10.99.185.156)"
165
## [32] "tmpfs on /secrets/secret-token type tmpfs (ro,relatime)"
166
## [33] "kucalc-default-project-20e4a191-73ea-4921-80e9-0a5d792fc511 on /home/user type zfs (rw,xattr,noacl)"
167
## [34] "bindfs on /home/user/.snapshots type fuse.bindfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)"
168
## [35] "tmpfs on /secrets/gateway-public type tmpfs (ro,relatime)"
169
## [36] "/dev/sda1 on /dev/termination-log type ext4 (rw,relatime,data=ordered)"
170
## [37] "/dev/sda1 on /etc/resolv.conf type ext4 (rw,relatime,data=ordered)"
171
## [38] "/dev/sda1 on /etc/hostname type ext4 (rw,relatime,data=ordered)"
172
## [39] "/dev/sda1 on /etc/hosts type ext4 (rw,relatime,data=ordered)"
173
## [40] "shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k)"
174
## [41] "tmpfs on /run/secrets/kubernetes.io/serviceaccount type tmpfs (ro,relatime)"
175
## [42] "proc on /proc/bus type proc (ro,nosuid,nodev,noexec,relatime)"
176
## [43] "proc on /proc/fs type proc (ro,nosuid,nodev,noexec,relatime)"
177
## [44] "proc on /proc/irq type proc (ro,nosuid,nodev,noexec,relatime)"
178
## [45] "proc on /proc/sys type proc (ro,nosuid,nodev,noexec,relatime)"
179
## [46] "proc on /proc/sysrq-trigger type proc (ro,nosuid,nodev,noexec,relatime)"
180
## [47] "tmpfs on /proc/kcore type tmpfs (rw,nosuid,mode=755)"
181
## [48] "tmpfs on /proc/timer_list type tmpfs (rw,nosuid,mode=755)"
182
## [49] "tmpfs on /proc/sched_debug type tmpfs (rw,nosuid,mode=755)"
183
\end{verbatim}
184
\end{kframe}
185
\end{knitrout}
186
187
188
\begin{knitrout}
189
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
190
\begin{alltt}
191
\hlkwd{system}\hlstd{(}\hlstr{"hostname"}\hlstd{,} \hlkwc{intern} \hlstd{=} \hlnum{TRUE}\hlstd{)}
192
\end{alltt}
193
\begin{verbatim}
194
## [1] "project-20e4a191-73ea-4921-80e9-0a5d792fc511"
195
\end{verbatim}
196
\end{kframe}
197
\end{knitrout}
198
199
\begin{knitrout}
200
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
201
\begin{alltt}
202
\hlkwd{system}\hlstd{(}\hlstr{"cat /etc/os-release"}\hlstd{,} \hlkwc{intern} \hlstd{=} \hlnum{TRUE}\hlstd{)}
203
\end{alltt}
204
\begin{verbatim}
205
## [1] "NAME=\"Ubuntu\""
206
## [2] "VERSION=\"16.04.4 LTS (Xenial Xerus)\""
207
## [3] "ID=ubuntu"
208
## [4] "ID_LIKE=debian"
209
## [5] "PRETTY_NAME=\"Ubuntu 16.04.4 LTS\""
210
## [6] "VERSION_ID=\"16.04\""
211
## [7] "HOME_URL=\"http://www.ubuntu.com/\""
212
## [8] "SUPPORT_URL=\"http://help.ubuntu.com/\""
213
## [9] "BUG_REPORT_URL=\"http://bugs.launchpad.net/ubuntu/\""
214
## [10] "VERSION_CODENAME=xenial"
215
## [11] "UBUNTU_CODENAME=xenial"
216
\end{verbatim}
217
\end{kframe}
218
\end{knitrout}
219
220
221
\begin{knitrout}
222
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
223
\begin{alltt}
224
\hlkwd{system}\hlstd{(}\hlstr{"ls -la"}\hlstd{,} \hlkwc{intern} \hlstd{=} \hlnum{TRUE}\hlstd{)}
225
\end{alltt}
226
\begin{verbatim}
227
## [1] "total 1808"
228
## [2] "drwxrwx--- 9 user user 150 Jul 8 09:06 ."
229
## [3] "drwx------ 135 user user 1120 Jul 9 12:19 .."
230
## [4] "-rw-r----- 1 user user 1611 Jan 3 2016 ..test.ipynb.syncdoc4.sage-history"
231
## [5] "-rw-r--r-- 1 user user 0 Jun 18 14:09 .2018-01-28-210904.tex.lock"
232
## [6] "-rw-rw---- 1 user user 0 Apr 11 2015 .data.sagetex.sout.sage-chat"
233
## [7] "-rw-rw---- 1 user user 3843 Apr 11 2015 .data.sagetex.sout.sage-history"
234
## [8] "-rw-rw---- 1 user user 0 Apr 11 2015 .data.sagews.sage-chat"
235
## [9] "-rw-rw---- 1 user user 104801 Apr 11 2015 .data.sagews.sage-history"
236
## [10] "-rw-r--r-- 1 user user 0 Feb 1 19:15 .data.tex.lock"
237
## [11] "-rw-rw---- 1 user user 579 Apr 13 2015 .data.tex.sage-chat"
238
## [12] "-rw-rw---- 1 user user 64183 Jun 11 2015 .data.tex.sage-history"
239
## [13] "-rw-r--r-- 1 user user 145 Jun 22 07:58 .default.tex.syncdb"
240
## [14] "-rw------- 1 user user 0 Sep 19 2017 .empty.tex.lock"
241
## [15] "-rw------- 1 user user 0 May 24 10:35 .example.tex.lock"
242
## [16] "-rw-rw---- 1 user user 850 Mar 29 12:56 .example.tex.sage-chat"
243
## [17] "-rw-rw---- 1 user user 8029 Apr 13 2015 .example.tex.sage-history"
244
## [18] "-rw-r--r-- 1 user user 149 Jun 18 13:56 .example.tex.syncdb"
245
## [19] "-rw-r--r-- 1 user user 148 Jun 22 07:57 .german.tex.syncdb"
246
## [20] "-rw-rw---- 1 user user 0 Dec 18 2013 .hangul.tex.sage-chat"
247
## [21] "drwxr-x--- 2 user user 3 Jan 3 2016 .ipynb_checkpoints"
248
## [22] "-rw-r----- 1 user user 0 Mar 11 2016 .latexmk.fls.sage-chat"
249
## [23] "-rw-r----- 1 user user 4128 Mar 11 2016 .latexmk.fls.sage-history"
250
## [24] "-rw-r--r-- 1 user user 0 Mar 14 14:36 .latexmk.tex.lock"
251
## [25] "-rw-r----- 1 user user 0 Dec 2 2015 .latexmk.tex.sage-chat"
252
## [26] "-rw-r----- 1 user user 3325 Dec 30 2015 .latexmk.tex.sage-history"
253
## [27] "-rw------- 1 user user 0 Feb 1 19:33 .long-presentation.tex.lock"
254
## [28] "-rw-r--r-- 1 user user 0 Mar 28 16:55 .small.tex.lock"
255
## [29] "-rw-r--r-- 1 user user 0 Aug 16 2015 .subdir.tex.sage-chat"
256
## [30] "-rw-r--r-- 1 user user 1149 Aug 16 2015 .subdir.tex.sage-history"
257
## [31] "-rw-r--r-- 1 user user 144 Jul 4 14:14 .system.rnw.syncdb"
258
## [32] "-rw-r----- 1 user user 636 Jan 3 2016 .test.ipynb.syncdoc4"
259
## [33] "-rw-r--r-- 1 user user 142 Jun 30 07:50 .test.rnw.syncdb"
260
## [34] "-rw-r--r-- 1 user user 0 Jun 29 14:29 .test.tex.lock"
261
## [35] "-rw-r--r-- 1 user user 109 Jun 18 14:09 2018-01-28-210904-concordance.tex"
262
## [36] "-rw-r--r-- 1 user user 8 Jun 18 14:09 2018-01-28-210904.aux"
263
## [37] "-rw-r--r-- 1 user user 7687 Jun 18 14:09 2018-01-28-210904.fdb_latexmk"
264
## [38] "-rw-r--r-- 1 user user 7029 Jun 18 14:09 2018-01-28-210904.fls"
265
## [39] "-rw-r--r-- 1 user user 32206 Jun 18 14:09 2018-01-28-210904.log"
266
## [40] "-rw-r--r-- 1 user user 67985 Jun 18 14:09 2018-01-28-210904.pdf"
267
## [41] "-rw-r--r-- 1 user user 571 Jan 28 20:09 2018-01-28-210904.rnw"
268
## [42] "-rw-r--r-- 1 user user 2154 Jun 18 14:09 2018-01-28-210904.synctex.gz"
269
## [43] "-rw-r--r-- 1 user user 2878 Jun 18 14:09 2018-01-28-210904.tex"
270
## [44] "-rw-rw---- 1 user user 200 Apr 11 2015 E2.sobj"
271
## [45] "drwxr-xr-x 2 user user 8 Jun 19 2017 build"
272
## [46] "drwxr-xr-x 2 user user 30 Jul 4 14:16 cache"
273
## [47] "-rw-r----- 1 user user 181 Feb 1 19:15 data.aux"
274
## [48] "-rw-r----- 1 user user 6549 Feb 1 19:15 data.fdb_latexmk"
275
## [49] "-rw-r--r-- 1 user user 6439 Feb 1 19:15 data.fls"
276
## [50] "-rw-r----- 1 user user 12449 Feb 1 19:15 data.log"
277
## [51] "-rw-r----- 1 user user 58943 Feb 1 19:15 data.pdf"
278
## [52] "-rw-r----- 1 user user 1374 Feb 1 19:15 data.sagetex.sage"
279
## [53] "-rw-r--r-- 1 user user 2187 Feb 1 19:15 data.sagetex.sage.py"
280
## [54] "-rw-r--r-- 1 user user 238 Feb 1 19:15 data.sagetex.scmd"
281
## [55] "-rw-r--r-- 1 user user 1495 Feb 1 19:15 data.sagetex.sout"
282
## [56] "-rw-rw---- 1 user user 5790 Apr 11 2015 data.sagews"
283
## [57] "-rw-r--r-- 1 user user 8855 Feb 1 19:15 data.synctex.gz"
284
## [58] "-rw-rw---- 1 user user 1402 Jan 1 2017 data.tex"
285
## [59] "-rw-r--r-- 1 user user 30 Jul 4 14:16 data.txt"
286
## [60] "-rw-r--r-- 1 user user 662 Jul 1 09:00 default.aux"
287
## [61] "-rw-r--r-- 1 user user 6261 Jul 1 09:00 default.fdb_latexmk"
288
## [62] "-rw-r--r-- 1 user user 5449 Jul 1 09:00 default.fls"
289
## [63] "-rw-r--r-- 1 user user 27372 Jul 1 09:00 default.log"
290
## [64] "-rw-r--r-- 1 user user 0 Jul 1 09:00 default.out"
291
## [65] "-rw-r--r-- 1 user user 63141 Jul 1 09:00 default.pdf"
292
## [66] "-rw-r--r-- 1 user user 1094 Jul 1 09:00 default.synctex.gz"
293
## [67] "-rw-r--r-- 1 user user 661 Jun 22 07:58 default.tex"
294
## [68] "-rw------- 1 user user 8 Sep 19 2017 empty.aux"
295
## [69] "-rw------- 1 user user 4481 Sep 19 2017 empty.fdb_latexmk"
296
## [70] "-rw------- 1 user user 3243 Sep 19 2017 empty.fls"
297
## [71] "-rw------- 1 user user 20577 Sep 19 2017 empty.log"
298
## [72] "-rw------- 1 user user 63238 Sep 19 2017 empty.pdf"
299
## [73] "-rw------- 1 user user 875 Sep 19 2017 empty.synctex.gz"
300
## [74] "-rw------- 1 user user 0 Sep 19 2017 empty.tex"
301
## [75] "-rw-r--r-- 1 user user 528 Jun 27 21:24 example.aux"
302
## [76] "-rw-r--r-- 1 user user 7228 Jun 27 21:24 example.fdb_latexmk"
303
## [77] "-rw-r--r-- 1 user user 7012 Jun 27 21:24 example.fls"
304
## [78] "-rw-r--r-- 1 user user 9566 Jun 27 21:24 example.log"
305
## [79] "-rw-r----- 1 user user 134933 Jun 27 21:24 example.pdf"
306
## [80] "-rw-r--r-- 1 user user 5403 Jun 27 21:24 example.sagetex.sage"
307
## [81] "-rw-r--r-- 1 user user 9890 Jun 27 21:23 example.sagetex.sage.py"
308
## [82] "-rw-r--r-- 1 user user 241 Jun 27 21:24 example.sagetex.scmd"
309
## [83] "-rw-r--r-- 1 user user 1499 Jun 27 21:24 example.sagetex.sout"
310
## [84] "-rw-r--r-- 1 user user 22289 Jun 27 21:24 example.synctex.gz"
311
## [85] "-rw-rw---- 1 user user 7673 Jun 18 13:52 example.tex"
312
## [86] "drwxr-xr-x 2 user user 6 Jun 28 15:06 figure"
313
## [87] "-rw-r--r-- 1 user user 662 Jun 22 07:55 german.aux"
314
## [88] "-rw-r--r-- 1 user user 4398 Jun 22 07:55 german.fdb_latexmk"
315
## [89] "-rw-r--r-- 1 user user 4299 Jun 22 07:55 german.fls"
316
## [90] "-rw-r--r-- 1 user user 26221 Jun 22 07:55 german.log"
317
## [91] "-rw-r--r-- 1 user user 0 Jun 22 07:55 german.out"
318
## [92] "-rw-r--r-- 1 user user 26665 Jun 22 07:55 german.pdf"
319
## [93] "-rw-r--r-- 1 user user 885 Jun 22 07:55 german.synctex.gz"
320
## [94] "-rw-r--r-- 1 user user 707 Jun 22 07:56 german.tex"
321
## [95] "-rw-rw---- 1 user user 735 Dec 18 2013 hangul.tex"
322
## [96] "-rw-r----- 1 user user 1230 Mar 14 14:36 latexmk.aux"
323
## [97] "-rw-r----- 1 user user 5250 Mar 14 14:36 latexmk.fdb_latexmk"
324
## [98] "-rw-r--r-- 1 user user 4025 Mar 14 14:36 latexmk.fls"
325
## [99] "-rw-r----- 1 user user 8068 Mar 14 14:36 latexmk.log"
326
## [100] "-rw-r----- 1 user user 138479 Mar 14 14:36 latexmk.pdf"
327
## [101] "-rw-r--r-- 1 user user 111978 Mar 14 14:36 latexmk.synctex.gz"
328
## [102] "-rw-r----- 1 user user 2588 Mar 14 14:36 latexmk.tex"
329
## [103] "-rw-r--r-- 1 user user 7339 Feb 1 19:33 long-presentation.aux"
330
## [104] "-rw-r--r-- 1 user user 24994 Feb 1 19:33 long-presentation.fdb_latexmk"
331
## [105] "-rw-r--r-- 1 user user 25297 Feb 1 19:33 long-presentation.fls"
332
## [106] "-rw-r--r-- 1 user user 39970 Feb 1 19:33 long-presentation.log"
333
## [107] "-rw------- 1 user user 3817 Feb 1 19:33 long-presentation.nav"
334
## [108] "-rw-r--r-- 1 user user 338 Feb 1 19:33 long-presentation.out"
335
## [109] "-rw------- 1 user user 166408 Feb 1 19:33 long-presentation.pdf"
336
## [110] "-rw------- 1 user user 178 Feb 1 19:33 long-presentation.snm"
337
## [111] "-rw-r--r-- 1 user user 80005 Feb 1 19:33 long-presentation.synctex.gz"
338
## [112] "-rw------- 1 user user 18891 Jan 28 20:08 long-presentation.tex"
339
## [113] "-rw-r--r-- 1 user user 386 Feb 1 19:33 long-presentation.toc"
340
## [114] "drwxr-xr-x 3 user user 18 Mar 21 10:17 multiple-files"
341
## [115] "drwxrwx--- 2 user user 18 Apr 11 2015 sage-plots-for-data.tex"
342
## [116] "drwxr-xr-x 2 user user 18 Jun 27 21:24 sage-plots-for-example.tex"
343
## [117] "-rw-r--r-- 1 user user 8 Mar 28 16:55 small.aux"
344
## [118] "-rw-r--r-- 1 user user 4481 Mar 28 16:55 small.fdb_latexmk"
345
## [119] "-rw-r--r-- 1 user user 3243 Mar 28 16:55 small.fls"
346
## [120] "-rw-r--r-- 1 user user 20577 Mar 28 16:55 small.log"
347
## [121] "-rw-r--r-- 1 user user 62836 Mar 28 16:55 small.pdf"
348
## [122] "-rw-r--r-- 1 user user 868 Mar 28 16:55 small.synctex.gz"
349
## [123] "-rw-r--r-- 1 user user 510 Mar 28 16:09 small.tex"
350
## [124] "-rw-r--r-- 1 user user 305 Aug 16 2015 subdir.tex"
351
## [125] "-rw-r--r-- 1 user user 220 Jul 8 09:06 system-concordance.tex"
352
## [126] "-rw-r--r-- 1 user user 8 Jul 8 09:06 system.aux"
353
## [127] "-rw-r--r-- 1 user user 5263 Jul 8 09:06 system.fdb_latexmk"
354
## [128] "-rw-r--r-- 1 user user 5109 Jul 8 09:06 system.fls"
355
## [129] "-rw-r--r-- 1 user user 55727 Jul 8 09:06 system.log"
356
## [130] "-rw-r--r-- 1 user user 64721 Jul 8 09:06 system.pdf"
357
## [131] "-rw-r--r-- 1 user user 1586 Jul 4 14:16 system.rnw"
358
## [132] "-rw-r--r-- 1 user user 38570 Jul 8 09:06 system.synctex.gz"
359
## [133] "-rw-r--r-- 1 user user 36920 Jul 8 09:06 system.tex"
360
## [134] "-rw-rw---- 1 user user 36 Jul 6 06:44 terminal.term"
361
## [135] "-rw-r--r-- 1 user user 114 Jul 8 09:06 test-concordance.tex"
362
## [136] "-rw-r--r-- 1 user user 8 Jul 8 09:06 test.aux"
363
## [137] "-rw-r--r-- 1 user user 8094 Jul 8 09:06 test.fdb_latexmk"
364
## [138] "-rw-r--r-- 1 user user 7419 Jul 8 09:06 test.fls"
365
## [139] "-rw-r----- 1 user user 1190 Jan 3 2016 test.ipynb"
366
## [140] "-rw-r--r-- 1 user user 33755 Jul 8 09:06 test.log"
367
## [141] "-rw-r--r-- 1 user user 96947 Jul 8 09:06 test.pdf"
368
## [142] "-rw-r--r-- 1 user user 907 Jul 1 12:17 test.rnw"
369
## [143] "-rw-r--r-- 1 user user 4834 Jul 8 09:06 test.synctex.gz"
370
## [144] "-rw-r--r-- 1 user user 3969 Jul 8 09:06 test.tex"
371
## [145] "-rw-r----- 1 user user 8 Jul 16 2017 tex.aux"
372
## [146] "-rw-r----- 1 user user 4702 Jul 16 2017 tex.fdb_latexmk"
373
## [147] "-rw-r----- 1 user user 4242 Jul 16 2017 tex.fls"
374
## [148] "-rw-r----- 1 user user 19153 Jul 16 2017 tex.log"
375
## [149] "-rw-r----- 1 user user 8438 Jul 16 2017 tex.pdf"
376
## [150] "-rw-r----- 1 user user 991 Jul 16 2017 tex.synctex.gz"
377
## [151] "-rw-r----- 1 user user 635 Jun 19 2017 tex.tex"
378
\end{verbatim}
379
\end{kframe}
380
\end{knitrout}
381
382
\begin{knitrout}
383
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
384
\begin{alltt}
385
\hlkwd{system}\hlstd{(}\hlstr{"ls -la .cache/clsi/*"}\hlstd{,} \hlkwc{intern} \hlstd{=} \hlnum{TRUE}\hlstd{)}
386
\end{alltt}
387
388
389
{\ttfamily\noindent\color{warningcolor}{\#\# Warning: running command 'ls -la .cache/clsi/*' had status 2}}\begin{verbatim}
390
## character(0)
391
## attr(,"status")
392
## [1] 2
393
\end{verbatim}
394
\end{kframe}
395
\end{knitrout}
396
397
398
%/usr/lib/R/bin/exec/R --slave --no-restore -e %library('knitr');~+~setwd('/compile');~+~knit('main.Rtex')"
399
400
\begin{knitrout}
401
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
402
\begin{alltt}
403
\hlkwd{system}\hlstd{(}\hlstr{"cat .project-sync-state"}\hlstd{,} \hlkwc{intern} \hlstd{=} \hlnum{TRUE}\hlstd{)}
404
\end{alltt}
405
406
407
{\ttfamily\noindent\color{warningcolor}{\#\# Warning: running command 'cat .project-sync-state' had status 1}}\begin{verbatim}
408
## character(0)
409
## attr(,"status")
410
## [1] 1
411
\end{verbatim}
412
\end{kframe}
413
\end{knitrout}
414
415
\begin{knitrout}
416
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
417
\begin{alltt}
418
\hlkwd{system}\hlstd{(}\hlstr{"ps aux"}\hlstd{,} \hlkwc{intern} \hlstd{=} \hlnum{TRUE}\hlstd{)}
419
\end{alltt}
420
\begin{verbatim}
421
## [1] "USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND"
422
## [2] "user 1 0.0 0.0 212 4 ? Ss 12:18 0:00 /cocalc/bin/dumb-init -- sh -c env -i /cocalc/init/init.sh $COCALC_PROJECT_ID"
423
## [3] "user 6 0.0 0.0 435708 7176 ? Ssl 12:18 0:00 /cocalc/bin/supervisord -c /cocalc/supervisor/supervisord.conf"
424
## [4] "user 24 0.0 0.0 67584 5656 ? S 12:18 0:00 /usr/sbin/sshd -D -p 2222 -h /tmp/.cocalc/ssh_host_rsa_key -o PidFile=/tmp/.cocalc/sshd.pid -f /cocalc/init/sshd_config"
425
## [5] "user 25 0.2 0.1 916568 36872 ? Sl 12:18 0:00 node /cocalc/src/smc-project/console_server.js --port=6002 --kucalc"
426
## [6] "user 28 9.1 0.6 1409232 176244 ? Sl 12:18 0:09 node /cocalc/src/smc-project/local_hub.js --tcp_port 6000 --raw_port 6001 --console_port=6002 --kucalc"
427
## [7] "user 67 0.1 0.1 900932 31600 ? Sl 12:18 0:00 /usr/bin/node /cocalc/src/smc-project/console_server_child.js"
428
## [8] "user 73 0.0 0.0 24516 7604 pts/0 Ss 12:18 0:00 bash"
429
## [9] "user 116 0.0 0.0 18984 2280 pts/0 S+ 12:18 0:00 tmux"
430
## [10] "user 118 0.0 0.0 28456 2768 ? Ss 12:18 0:00 tmux"
431
## [11] "user 119 0.1 0.0 24524 7600 pts/1 Ss+ 12:18 0:00 -bash"
432
## [12] "user 198 15.2 1.0 8606996 288952 ? Ssl 12:18 0:10 python -m sage.repl.ipython_kernel --matplotlib=inline -f /home/user/.local/share/jupyter/runtime/kernel-c5ae2e55-dbb7-4874-9c9c-480b8debe7e2.json"
433
## [13] "user 342 0.8 0.6 8042216 185112 ? S 12:19 0:00 python -c import sys; sys.path.extend(['/cocalc/lib/python2.7/site-packages/']); from smc_sagews.sage_server_command_line import main; main('restart')"
434
## [14] "user 343 18.8 1.0 8216760 284932 ? Sl 12:19 0:05 python -c import sys; sys.path.extend(['/cocalc/lib/python2.7/site-packages/']); from smc_sagews.sage_server_command_line import main; main('restart')"
435
## [15] "user 367 55.4 0.2 329164 60752 ? S 12:19 0:02 /usr/lib/R/bin/exec/R --no-save --no-restore --quiet --no-readline -e require(knitr);~+~opts_knit$set(concordance~+~=~+~TRUE,~+~progress~+~=~+~FALSE);~+~knit(\"system.rnw\")"
436
## [16] "user 399 0.0 0.0 38220 3132 ? R 12:19 0:00 ps aux"
437
\end{verbatim}
438
\end{kframe}
439
\end{knitrout}
440
441
ok
442
443
t
444
t
445
446
t
447
448
t
449
450
t
451
452
t
453
t
454
455
t
456
ok
457
458
459
460
\begin{knitrout}
461
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
462
\begin{alltt}
463
\hlstd{n} \hlkwb{<-} \hlstd{n} \hlopt{+} \hlnum{0}
464
\hlkwd{Sys.sleep}\hlstd{(}\hlnum{0}\hlstd{)}
465
\hlkwd{message}\hlstd{(}\hlkwd{cat}\hlstd{(n,} \hlstr{"secs later"}\hlstd{))}
466
\end{alltt}
467
\begin{verbatim}
468
## 0 secs later
469
\end{verbatim}
470
471
472
{\ttfamily\noindent\itshape\color{messagecolor}{\#\# }}\end{kframe}
473
\end{knitrout}
474
475
476
477
478
t
479
480
t
481
482
ok
483
484
t
485
t
486
487
t
488
489
t
490
491
t
492
493
t
494
495
ok
496
497
t
498
t
499
500
t
501
502
t
503
504
t
505
506
t
507
508
ok
509
510
t
511
t
512
513
t
514
515
t
516
517
t
518
519
t
520
521
ok
522
523
t
524
t
525
526
t
527
528
t
529
530
t
531
532
t
533
534
ok
535
536
t
537
538
t
539
540
t
541
542
t
543
544
t
545
546
547
\begin{knitrout}
548
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
549
\begin{alltt}
550
\hlkwd{message}\hlstd{(}\hlnum{1}\hlopt{:}\hlnum{10}\hlstd{)}
551
\end{alltt}
552
553
554
{\ttfamily\noindent\itshape\color{messagecolor}{\#\# 12345678910}}\end{kframe}
555
\end{knitrout}
556
557
ok
558
559
t
560
561
t
562
563
t
564
565
t
566
567
t
568
569
570
\begin{knitrout}
571
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
572
\begin{alltt}
573
\hlkwd{message}\hlstd{(}\hlnum{1}\hlopt{:}\hlnum{10}\hlstd{)}
574
\end{alltt}
575
576
577
{\ttfamily\noindent\itshape\color{messagecolor}{\#\# 12345678910}}\end{kframe}
578
\end{knitrout}
579
580
ok
581
582
t
583
584
t
585
586
t
587
588
t
589
590
t
591
592
593
\begin{knitrout}
594
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
595
\begin{alltt}
596
\hlkwd{message}\hlstd{(}\hlnum{1}\hlopt{:}\hlnum{10}\hlstd{)}
597
\end{alltt}
598
599
600
{\ttfamily\noindent\itshape\color{messagecolor}{\#\# 12345678910}}\end{kframe}
601
\end{knitrout}
602
603
ok
604
605
t
606
607
t
608
609
t
610
611
t
612
613
t
614
615
616
\begin{knitrout}
617
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
618
\begin{alltt}
619
\hlkwd{message}\hlstd{(}\hlnum{1}\hlopt{:}\hlnum{10}\hlstd{)}
620
\end{alltt}
621
622
623
{\ttfamily\noindent\itshape\color{messagecolor}{\#\# 12345678910}}\end{kframe}
624
\end{knitrout}
625
626
627
628
\end{document}
629