Sharedlatex-tests / system.texOpen in CoCalc
\documentclass{article}\usepackage[]{graphicx}\usepackage[]{color}
%% maxwidth is the original width if it is less than linewidth
%% otherwise use linewidth (to make sure the graphics do not exceed the margin)
\makeatletter
\def\maxwidth{ %
  \ifdim\[email protected]@width>\linewidth
    \linewidth
  \else
    \[email protected]@width
  \fi
}
\makeatother

\definecolor{fgcolor}{rgb}{0.345, 0.345, 0.345}
\newcommand{\hlnum}[1]{\textcolor[rgb]{0.686,0.059,0.569}{#1}}%
\newcommand{\hlstr}[1]{\textcolor[rgb]{0.192,0.494,0.8}{#1}}%
\newcommand{\hlcom}[1]{\textcolor[rgb]{0.678,0.584,0.686}{\textit{#1}}}%
\newcommand{\hlopt}[1]{\textcolor[rgb]{0,0,0}{#1}}%
\newcommand{\hlstd}[1]{\textcolor[rgb]{0.345,0.345,0.345}{#1}}%
\newcommand{\hlkwa}[1]{\textcolor[rgb]{0.161,0.373,0.58}{\textbf{#1}}}%
\newcommand{\hlkwb}[1]{\textcolor[rgb]{0.69,0.353,0.396}{#1}}%
\newcommand{\hlkwc}[1]{\textcolor[rgb]{0.333,0.667,0.333}{#1}}%
\newcommand{\hlkwd}[1]{\textcolor[rgb]{0.737,0.353,0.396}{\textbf{#1}}}%
\let\hlipl\hlkwb

\usepackage{framed}
\makeatletter
\newenvironment{kframe}{%
 \def\[email protected]@[email protected]{}%
 \ifinner\ifhmode%
  \def\[email protected]@[email protected]{\end{minipage}}%
  \begin{minipage}{\columnwidth}%
 \fi\fi%
 \def\FrameCommand##1{\hskip\@totalleftmargin \hskip-\fboxsep
 \colorbox{shadecolor}{##1}\hskip-\fboxsep
     % There is no \\@totalrightmargin, so:
     \hskip-\linewidth \hskip-\@totalleftmargin \hskip\columnwidth}%
 \MakeFramed {\advance\hsize-\width
   \@totalleftmargin\[email protected] \linewidth\hsize
   \@setminipage}}%
 {\par\unskip\endMakeFramed%
 \[email protected]@[email protected]}
\makeatother

\definecolor{shadecolor}{rgb}{.97, .97, .97}
\definecolor{messagecolor}{rgb}{0, 0, 0}
\definecolor{warningcolor}{rgb}{1, 0, 1}
\definecolor{errorcolor}{rgb}{1, 0, 0}
\newenvironment{knitrout}{}{} % an empty environment to be redefined in TeX

\usepackage{alltt}
\usepackage[utf8]{inputenc}

\title{knitr-test}
\author{Harald Schilly}
\date{July 2018}
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\begin{document}

You can type R commands in your \LaTeX{} document and they will be properly run and the output printed in the document.


\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlkwd{library}\hlstd{(knitr)}
\hlstd{opts_chunk}\hlopt{$}\hlkwd{set}\hlstd{(}\hlkwc{fig.path}\hlstd{=}\hlstr{'figure/latex-'}\hlstd{,} \hlkwc{cache.path}\hlstd{=}\hlstr{'cache/latex-'}\hlstd{)}
\end{alltt}
\end{kframe}
\end{knitrout}

\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlcom{# Create a sequence of numbers}
\hlstd{X} \hlkwb{=} \hlnum{2}\hlopt{:}\hlnum{10}

\hlcom{# Display basic statistical measures}
\hlkwd{summary}\hlstd{(X)}
\end{alltt}
\begin{verbatim}
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
##       2       4       6       6       8      10
\end{verbatim}
\end{kframe}
\end{knitrout}

t

t

t

t

t

t

\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlstd{fileConn}\hlkwb{<-}\hlkwd{file}\hlstd{(}\hlstr{"data.txt"}\hlstd{)}
\hlkwd{writeLines}\hlstd{(}\hlkwd{paste}\hlstd{(}\hlkwd{c}\hlstd{(}\hlnum{1}\hlopt{:}\hlnum{10}\hlstd{),} \hlkwc{collapse}\hlstd{=}\hlstr{", "}\hlstd{), fileConn)}
\hlkwd{close}\hlstd{(fileConn)}
\end{alltt}
\end{kframe}
\end{knitrout}

and output

\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlstd{fileConn} \hlkwb{<-} \hlkwd{file}\hlstd{(}\hlstr{"data.txt"}\hlstd{)}
\hlstd{data} \hlkwb{<-} \hlkwd{readLines}\hlstd{(fileConn)}
\hlkwd{message}\hlstd{(data)}
\end{alltt}


{\ttfamily\noindent\itshape\color{messagecolor}{\#\# 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}\end{kframe}
\end{knitrout}

data: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.

t

\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlkwd{system}\hlstd{(}\hlstr{"mount"}\hlstd{,} \hlkwc{intern} \hlstd{=} \hlnum{TRUE}\hlstd{)}
\end{alltt}
\begin{verbatim}
##  [1] "none on / type aufs (rw,relatime,si=34223f5145629321,dio,dirperm1)"                                                                                                                                                                                    
##  [2] "proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)"                                                                                                                                                                                             
##  [3] "tmpfs on /dev type tmpfs (rw,nosuid,mode=755)"                                                                                                                                                                                                         
##  [4] "devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666)"                                                                                                                                                                
##  [5] "sysfs on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)"                                                                                                                                                                                            
##  [6] "tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,relatime,mode=755)"                                                                                                                                                                         
##  [7] "cgroup on /sys/fs/cgroup/systemd type cgroup (ro,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)"                                                                                                    
##  [8] "cgroup on /sys/fs/cgroup/blkio type cgroup (ro,nosuid,nodev,noexec,relatime,blkio)"                                                                                                                                                                    
##  [9] "cgroup on /sys/fs/cgroup/rdma type cgroup (ro,nosuid,nodev,noexec,relatime,rdma)"                                                                                                                                                                      
## [10] "cgroup on /sys/fs/cgroup/hugetlb type cgroup (ro,nosuid,nodev,noexec,relatime,hugetlb)"                                                                                                                                                                
## [11] "cgroup on /sys/fs/cgroup/memory type cgroup (ro,nosuid,nodev,noexec,relatime,memory)"                                                                                                                                                                  
## [12] "cgroup on /sys/fs/cgroup/cpuset type cgroup (ro,nosuid,nodev,noexec,relatime,cpuset)"                                                                                                                                                                  
## [13] "cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (ro,nosuid,nodev,noexec,relatime,net_cls,net_prio)"                                                                                                                                              
## [14] "cgroup on /sys/fs/cgroup/perf_event type cgroup (ro,nosuid,nodev,noexec,relatime,perf_event)"                                                                                                                                                          
## [15] "cgroup on /sys/fs/cgroup/freezer type cgroup (ro,nosuid,nodev,noexec,relatime,freezer)"                                                                                                                                                                
## [16] "cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (ro,nosuid,nodev,noexec,relatime,cpu,cpuacct)"                                                                                                                                                        
## [17] "cgroup on /sys/fs/cgroup/pids type cgroup (ro,nosuid,nodev,noexec,relatime,pids)"                                                                                                                                                                      
## [18] "cgroup on /sys/fs/cgroup/devices type cgroup (ro,nosuid,nodev,noexec,relatime,devices)"                                                                                                                                                                
## [19] "mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)"                                                                                                                                                                                   
## [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)"  
## [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)"  
## [22] "tmpfs on /tmp type tmpfs (rw,relatime)"                                                                                                                                                                                                                
## [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)"    
## [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)"      
## [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)"                             
## [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)"      
## [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)"      
## [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)"
## [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)"      
## [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)"      
## [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)"      
## [32] "tmpfs on /secrets/secret-token type tmpfs (ro,relatime)"                                                                                                                                                                                               
## [33] "kucalc-default-project-20e4a191-73ea-4921-80e9-0a5d792fc511 on /home/user type zfs (rw,xattr,noacl)"                                                                                                                                                   
## [34] "bindfs on /home/user/.snapshots type fuse.bindfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)"                                                                                                                      
## [35] "tmpfs on /secrets/gateway-public type tmpfs (ro,relatime)"                                                                                                                                                                                             
## [36] "/dev/sda1 on /dev/termination-log type ext4 (rw,relatime,data=ordered)"                                                                                                                                                                                
## [37] "/dev/sda1 on /etc/resolv.conf type ext4 (rw,relatime,data=ordered)"                                                                                                                                                                                    
## [38] "/dev/sda1 on /etc/hostname type ext4 (rw,relatime,data=ordered)"                                                                                                                                                                                       
## [39] "/dev/sda1 on /etc/hosts type ext4 (rw,relatime,data=ordered)"                                                                                                                                                                                          
## [40] "shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k)"                                                                                                                                                                              
## [41] "tmpfs on /run/secrets/kubernetes.io/serviceaccount type tmpfs (ro,relatime)"                                                                                                                                                                           
## [42] "proc on /proc/bus type proc (ro,nosuid,nodev,noexec,relatime)"                                                                                                                                                                                         
## [43] "proc on /proc/fs type proc (ro,nosuid,nodev,noexec,relatime)"                                                                                                                                                                                          
## [44] "proc on /proc/irq type proc (ro,nosuid,nodev,noexec,relatime)"                                                                                                                                                                                         
## [45] "proc on /proc/sys type proc (ro,nosuid,nodev,noexec,relatime)"                                                                                                                                                                                         
## [46] "proc on /proc/sysrq-trigger type proc (ro,nosuid,nodev,noexec,relatime)"                                                                                                                                                                               
## [47] "tmpfs on /proc/kcore type tmpfs (rw,nosuid,mode=755)"                                                                                                                                                                                                  
## [48] "tmpfs on /proc/timer_list type tmpfs (rw,nosuid,mode=755)"                                                                                                                                                                                             
## [49] "tmpfs on /proc/sched_debug type tmpfs (rw,nosuid,mode=755)"
\end{verbatim}
\end{kframe}
\end{knitrout}


\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlkwd{system}\hlstd{(}\hlstr{"hostname"}\hlstd{,} \hlkwc{intern} \hlstd{=} \hlnum{TRUE}\hlstd{)}
\end{alltt}
\begin{verbatim}
## [1] "project-20e4a191-73ea-4921-80e9-0a5d792fc511"
\end{verbatim}
\end{kframe}
\end{knitrout}

\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlkwd{system}\hlstd{(}\hlstr{"cat /etc/os-release"}\hlstd{,} \hlkwc{intern} \hlstd{=} \hlnum{TRUE}\hlstd{)}
\end{alltt}
\begin{verbatim}
##  [1] "NAME=\"Ubuntu\""                                     
##  [2] "VERSION=\"16.04.4 LTS (Xenial Xerus)\""              
##  [3] "ID=ubuntu"                                           
##  [4] "ID_LIKE=debian"                                      
##  [5] "PRETTY_NAME=\"Ubuntu 16.04.4 LTS\""                  
##  [6] "VERSION_ID=\"16.04\""                                
##  [7] "HOME_URL=\"http://www.ubuntu.com/\""                 
##  [8] "SUPPORT_URL=\"http://help.ubuntu.com/\""             
##  [9] "BUG_REPORT_URL=\"http://bugs.launchpad.net/ubuntu/\""
## [10] "VERSION_CODENAME=xenial"                             
## [11] "UBUNTU_CODENAME=xenial"
\end{verbatim}
\end{kframe}
\end{knitrout}


\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlkwd{system}\hlstd{(}\hlstr{"ls -la"}\hlstd{,} \hlkwc{intern} \hlstd{=} \hlnum{TRUE}\hlstd{)}
\end{alltt}
\begin{verbatim}
##   [1] "total 1808"                                                                     
##   [2] "drwxrwx---   9 user user    150 Jul  8 09:06 ."                                 
##   [3] "drwx------ 135 user user   1120 Jul  9 12:19 .."                                
##   [4] "-rw-r-----   1 user user   1611 Jan  3  2016 ..test.ipynb.syncdoc4.sage-history"
##   [5] "-rw-r--r--   1 user user      0 Jun 18 14:09 .2018-01-28-210904.tex.lock"       
##   [6] "-rw-rw----   1 user user      0 Apr 11  2015 .data.sagetex.sout.sage-chat"      
##   [7] "-rw-rw----   1 user user   3843 Apr 11  2015 .data.sagetex.sout.sage-history"   
##   [8] "-rw-rw----   1 user user      0 Apr 11  2015 .data.sagews.sage-chat"            
##   [9] "-rw-rw----   1 user user 104801 Apr 11  2015 .data.sagews.sage-history"         
##  [10] "-rw-r--r--   1 user user      0 Feb  1 19:15 .data.tex.lock"                    
##  [11] "-rw-rw----   1 user user    579 Apr 13  2015 .data.tex.sage-chat"               
##  [12] "-rw-rw----   1 user user  64183 Jun 11  2015 .data.tex.sage-history"            
##  [13] "-rw-r--r--   1 user user    145 Jun 22 07:58 .default.tex.syncdb"               
##  [14] "-rw-------   1 user user      0 Sep 19  2017 .empty.tex.lock"                   
##  [15] "-rw-------   1 user user      0 May 24 10:35 .example.tex.lock"                 
##  [16] "-rw-rw----   1 user user    850 Mar 29 12:56 .example.tex.sage-chat"            
##  [17] "-rw-rw----   1 user user   8029 Apr 13  2015 .example.tex.sage-history"         
##  [18] "-rw-r--r--   1 user user    149 Jun 18 13:56 .example.tex.syncdb"               
##  [19] "-rw-r--r--   1 user user    148 Jun 22 07:57 .german.tex.syncdb"                
##  [20] "-rw-rw----   1 user user      0 Dec 18  2013 .hangul.tex.sage-chat"             
##  [21] "drwxr-x---   2 user user      3 Jan  3  2016 .ipynb_checkpoints"                
##  [22] "-rw-r-----   1 user user      0 Mar 11  2016 .latexmk.fls.sage-chat"            
##  [23] "-rw-r-----   1 user user   4128 Mar 11  2016 .latexmk.fls.sage-history"         
##  [24] "-rw-r--r--   1 user user      0 Mar 14 14:36 .latexmk.tex.lock"                 
##  [25] "-rw-r-----   1 user user      0 Dec  2  2015 .latexmk.tex.sage-chat"            
##  [26] "-rw-r-----   1 user user   3325 Dec 30  2015 .latexmk.tex.sage-history"         
##  [27] "-rw-------   1 user user      0 Feb  1 19:33 .long-presentation.tex.lock"       
##  [28] "-rw-r--r--   1 user user      0 Mar 28 16:55 .small.tex.lock"                   
##  [29] "-rw-r--r--   1 user user      0 Aug 16  2015 .subdir.tex.sage-chat"             
##  [30] "-rw-r--r--   1 user user   1149 Aug 16  2015 .subdir.tex.sage-history"          
##  [31] "-rw-r--r--   1 user user    144 Jul  4 14:14 .system.rnw.syncdb"                
##  [32] "-rw-r-----   1 user user    636 Jan  3  2016 .test.ipynb.syncdoc4"              
##  [33] "-rw-r--r--   1 user user    142 Jun 30 07:50 .test.rnw.syncdb"                  
##  [34] "-rw-r--r--   1 user user      0 Jun 29 14:29 .test.tex.lock"                    
##  [35] "-rw-r--r--   1 user user    109 Jun 18 14:09 2018-01-28-210904-concordance.tex" 
##  [36] "-rw-r--r--   1 user user      8 Jun 18 14:09 2018-01-28-210904.aux"             
##  [37] "-rw-r--r--   1 user user   7687 Jun 18 14:09 2018-01-28-210904.fdb_latexmk"     
##  [38] "-rw-r--r--   1 user user   7029 Jun 18 14:09 2018-01-28-210904.fls"             
##  [39] "-rw-r--r--   1 user user  32206 Jun 18 14:09 2018-01-28-210904.log"             
##  [40] "-rw-r--r--   1 user user  67985 Jun 18 14:09 2018-01-28-210904.pdf"             
##  [41] "-rw-r--r--   1 user user    571 Jan 28 20:09 2018-01-28-210904.rnw"             
##  [42] "-rw-r--r--   1 user user   2154 Jun 18 14:09 2018-01-28-210904.synctex.gz"      
##  [43] "-rw-r--r--   1 user user   2878 Jun 18 14:09 2018-01-28-210904.tex"             
##  [44] "-rw-rw----   1 user user    200 Apr 11  2015 E2.sobj"                           
##  [45] "drwxr-xr-x   2 user user      8 Jun 19  2017 build"                             
##  [46] "drwxr-xr-x   2 user user     30 Jul  4 14:16 cache"                             
##  [47] "-rw-r-----   1 user user    181 Feb  1 19:15 data.aux"                          
##  [48] "-rw-r-----   1 user user   6549 Feb  1 19:15 data.fdb_latexmk"                  
##  [49] "-rw-r--r--   1 user user   6439 Feb  1 19:15 data.fls"                          
##  [50] "-rw-r-----   1 user user  12449 Feb  1 19:15 data.log"                          
##  [51] "-rw-r-----   1 user user  58943 Feb  1 19:15 data.pdf"                          
##  [52] "-rw-r-----   1 user user   1374 Feb  1 19:15 data.sagetex.sage"                 
##  [53] "-rw-r--r--   1 user user   2187 Feb  1 19:15 data.sagetex.sage.py"              
##  [54] "-rw-r--r--   1 user user    238 Feb  1 19:15 data.sagetex.scmd"                 
##  [55] "-rw-r--r--   1 user user   1495 Feb  1 19:15 data.sagetex.sout"                 
##  [56] "-rw-rw----   1 user user   5790 Apr 11  2015 data.sagews"                       
##  [57] "-rw-r--r--   1 user user   8855 Feb  1 19:15 data.synctex.gz"                   
##  [58] "-rw-rw----   1 user user   1402 Jan  1  2017 data.tex"                          
##  [59] "-rw-r--r--   1 user user     30 Jul  4 14:16 data.txt"                          
##  [60] "-rw-r--r--   1 user user    662 Jul  1 09:00 default.aux"                       
##  [61] "-rw-r--r--   1 user user   6261 Jul  1 09:00 default.fdb_latexmk"               
##  [62] "-rw-r--r--   1 user user   5449 Jul  1 09:00 default.fls"                       
##  [63] "-rw-r--r--   1 user user  27372 Jul  1 09:00 default.log"                       
##  [64] "-rw-r--r--   1 user user      0 Jul  1 09:00 default.out"                       
##  [65] "-rw-r--r--   1 user user  63141 Jul  1 09:00 default.pdf"                       
##  [66] "-rw-r--r--   1 user user   1094 Jul  1 09:00 default.synctex.gz"                
##  [67] "-rw-r--r--   1 user user    661 Jun 22 07:58 default.tex"                       
##  [68] "-rw-------   1 user user      8 Sep 19  2017 empty.aux"                         
##  [69] "-rw-------   1 user user   4481 Sep 19  2017 empty.fdb_latexmk"                 
##  [70] "-rw-------   1 user user   3243 Sep 19  2017 empty.fls"                         
##  [71] "-rw-------   1 user user  20577 Sep 19  2017 empty.log"                         
##  [72] "-rw-------   1 user user  63238 Sep 19  2017 empty.pdf"                         
##  [73] "-rw-------   1 user user    875 Sep 19  2017 empty.synctex.gz"                  
##  [74] "-rw-------   1 user user      0 Sep 19  2017 empty.tex"                         
##  [75] "-rw-r--r--   1 user user    528 Jun 27 21:24 example.aux"                       
##  [76] "-rw-r--r--   1 user user   7228 Jun 27 21:24 example.fdb_latexmk"               
##  [77] "-rw-r--r--   1 user user   7012 Jun 27 21:24 example.fls"                       
##  [78] "-rw-r--r--   1 user user   9566 Jun 27 21:24 example.log"                       
##  [79] "-rw-r-----   1 user user 134933 Jun 27 21:24 example.pdf"                       
##  [80] "-rw-r--r--   1 user user   5403 Jun 27 21:24 example.sagetex.sage"              
##  [81] "-rw-r--r--   1 user user   9890 Jun 27 21:23 example.sagetex.sage.py"           
##  [82] "-rw-r--r--   1 user user    241 Jun 27 21:24 example.sagetex.scmd"              
##  [83] "-rw-r--r--   1 user user   1499 Jun 27 21:24 example.sagetex.sout"              
##  [84] "-rw-r--r--   1 user user  22289 Jun 27 21:24 example.synctex.gz"                
##  [85] "-rw-rw----   1 user user   7673 Jun 18 13:52 example.tex"                       
##  [86] "drwxr-xr-x   2 user user      6 Jun 28 15:06 figure"                            
##  [87] "-rw-r--r--   1 user user    662 Jun 22 07:55 german.aux"                        
##  [88] "-rw-r--r--   1 user user   4398 Jun 22 07:55 german.fdb_latexmk"                
##  [89] "-rw-r--r--   1 user user   4299 Jun 22 07:55 german.fls"                        
##  [90] "-rw-r--r--   1 user user  26221 Jun 22 07:55 german.log"                        
##  [91] "-rw-r--r--   1 user user      0 Jun 22 07:55 german.out"                        
##  [92] "-rw-r--r--   1 user user  26665 Jun 22 07:55 german.pdf"                        
##  [93] "-rw-r--r--   1 user user    885 Jun 22 07:55 german.synctex.gz"                 
##  [94] "-rw-r--r--   1 user user    707 Jun 22 07:56 german.tex"                        
##  [95] "-rw-rw----   1 user user    735 Dec 18  2013 hangul.tex"                        
##  [96] "-rw-r-----   1 user user   1230 Mar 14 14:36 latexmk.aux"                       
##  [97] "-rw-r-----   1 user user   5250 Mar 14 14:36 latexmk.fdb_latexmk"               
##  [98] "-rw-r--r--   1 user user   4025 Mar 14 14:36 latexmk.fls"                       
##  [99] "-rw-r-----   1 user user   8068 Mar 14 14:36 latexmk.log"                       
## [100] "-rw-r-----   1 user user 138479 Mar 14 14:36 latexmk.pdf"                       
## [101] "-rw-r--r--   1 user user 111978 Mar 14 14:36 latexmk.synctex.gz"                
## [102] "-rw-r-----   1 user user   2588 Mar 14 14:36 latexmk.tex"                       
## [103] "-rw-r--r--   1 user user   7339 Feb  1 19:33 long-presentation.aux"             
## [104] "-rw-r--r--   1 user user  24994 Feb  1 19:33 long-presentation.fdb_latexmk"     
## [105] "-rw-r--r--   1 user user  25297 Feb  1 19:33 long-presentation.fls"             
## [106] "-rw-r--r--   1 user user  39970 Feb  1 19:33 long-presentation.log"             
## [107] "-rw-------   1 user user   3817 Feb  1 19:33 long-presentation.nav"             
## [108] "-rw-r--r--   1 user user    338 Feb  1 19:33 long-presentation.out"             
## [109] "-rw-------   1 user user 166408 Feb  1 19:33 long-presentation.pdf"             
## [110] "-rw-------   1 user user    178 Feb  1 19:33 long-presentation.snm"             
## [111] "-rw-r--r--   1 user user  80005 Feb  1 19:33 long-presentation.synctex.gz"      
## [112] "-rw-------   1 user user  18891 Jan 28 20:08 long-presentation.tex"             
## [113] "-rw-r--r--   1 user user    386 Feb  1 19:33 long-presentation.toc"             
## [114] "drwxr-xr-x   3 user user     18 Mar 21 10:17 multiple-files"                    
## [115] "drwxrwx---   2 user user     18 Apr 11  2015 sage-plots-for-data.tex"           
## [116] "drwxr-xr-x   2 user user     18 Jun 27 21:24 sage-plots-for-example.tex"        
## [117] "-rw-r--r--   1 user user      8 Mar 28 16:55 small.aux"                         
## [118] "-rw-r--r--   1 user user   4481 Mar 28 16:55 small.fdb_latexmk"                 
## [119] "-rw-r--r--   1 user user   3243 Mar 28 16:55 small.fls"                         
## [120] "-rw-r--r--   1 user user  20577 Mar 28 16:55 small.log"                         
## [121] "-rw-r--r--   1 user user  62836 Mar 28 16:55 small.pdf"                         
## [122] "-rw-r--r--   1 user user    868 Mar 28 16:55 small.synctex.gz"                  
## [123] "-rw-r--r--   1 user user    510 Mar 28 16:09 small.tex"                         
## [124] "-rw-r--r--   1 user user    305 Aug 16  2015 subdir.tex"                        
## [125] "-rw-r--r--   1 user user    220 Jul  8 09:06 system-concordance.tex"            
## [126] "-rw-r--r--   1 user user      8 Jul  8 09:06 system.aux"                        
## [127] "-rw-r--r--   1 user user   5263 Jul  8 09:06 system.fdb_latexmk"                
## [128] "-rw-r--r--   1 user user   5109 Jul  8 09:06 system.fls"                        
## [129] "-rw-r--r--   1 user user  55727 Jul  8 09:06 system.log"                        
## [130] "-rw-r--r--   1 user user  64721 Jul  8 09:06 system.pdf"                        
## [131] "-rw-r--r--   1 user user   1586 Jul  4 14:16 system.rnw"                        
## [132] "-rw-r--r--   1 user user  38570 Jul  8 09:06 system.synctex.gz"                 
## [133] "-rw-r--r--   1 user user  36920 Jul  8 09:06 system.tex"                        
## [134] "-rw-rw----   1 user user     36 Jul  6 06:44 terminal.term"                     
## [135] "-rw-r--r--   1 user user    114 Jul  8 09:06 test-concordance.tex"              
## [136] "-rw-r--r--   1 user user      8 Jul  8 09:06 test.aux"                          
## [137] "-rw-r--r--   1 user user   8094 Jul  8 09:06 test.fdb_latexmk"                  
## [138] "-rw-r--r--   1 user user   7419 Jul  8 09:06 test.fls"                          
## [139] "-rw-r-----   1 user user   1190 Jan  3  2016 test.ipynb"                        
## [140] "-rw-r--r--   1 user user  33755 Jul  8 09:06 test.log"                          
## [141] "-rw-r--r--   1 user user  96947 Jul  8 09:06 test.pdf"                          
## [142] "-rw-r--r--   1 user user    907 Jul  1 12:17 test.rnw"                          
## [143] "-rw-r--r--   1 user user   4834 Jul  8 09:06 test.synctex.gz"                   
## [144] "-rw-r--r--   1 user user   3969 Jul  8 09:06 test.tex"                          
## [145] "-rw-r-----   1 user user      8 Jul 16  2017 tex.aux"                           
## [146] "-rw-r-----   1 user user   4702 Jul 16  2017 tex.fdb_latexmk"                   
## [147] "-rw-r-----   1 user user   4242 Jul 16  2017 tex.fls"                           
## [148] "-rw-r-----   1 user user  19153 Jul 16  2017 tex.log"                           
## [149] "-rw-r-----   1 user user   8438 Jul 16  2017 tex.pdf"                           
## [150] "-rw-r-----   1 user user    991 Jul 16  2017 tex.synctex.gz"                    
## [151] "-rw-r-----   1 user user    635 Jun 19  2017 tex.tex"
\end{verbatim}
\end{kframe}
\end{knitrout}

\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlkwd{system}\hlstd{(}\hlstr{"ls -la .cache/clsi/*"}\hlstd{,} \hlkwc{intern} \hlstd{=} \hlnum{TRUE}\hlstd{)}
\end{alltt}


{\ttfamily\noindent\color{warningcolor}{\#\# Warning: running command 'ls -la .cache/clsi/*' had status 2}}\begin{verbatim}
## character(0)
## attr(,"status")
## [1] 2
\end{verbatim}
\end{kframe}
\end{knitrout}


%/usr/lib/R/bin/exec/R --slave --no-restore -e %library('knitr');~+~setwd('/compile');~+~knit('main.Rtex')"

\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlkwd{system}\hlstd{(}\hlstr{"cat .project-sync-state"}\hlstd{,} \hlkwc{intern} \hlstd{=} \hlnum{TRUE}\hlstd{)}
\end{alltt}


{\ttfamily\noindent\color{warningcolor}{\#\# Warning: running command 'cat .project-sync-state' had status 1}}\begin{verbatim}
## character(0)
## attr(,"status")
## [1] 1
\end{verbatim}
\end{kframe}
\end{knitrout}

\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlkwd{system}\hlstd{(}\hlstr{"ps aux"}\hlstd{,} \hlkwc{intern} \hlstd{=} \hlnum{TRUE}\hlstd{)}
\end{alltt}
\begin{verbatim}
##  [1] "USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND"                                                                                                                                                                      
##  [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"                                                                                                
##  [3] "user           6  0.0  0.0 435708  7176 ?        Ssl  12:18   0:00 /cocalc/bin/supervisord -c /cocalc/supervisor/supervisord.conf"                                                                                                               
##  [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"                                                      
##  [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"                                                                                                          
##  [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"                                                                       
##  [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"                                                                                                                
##  [8] "user          73  0.0  0.0  24516  7604 pts/0    Ss   12:18   0:00 bash"                                                                                                                                                                         
##  [9] "user         116  0.0  0.0  18984  2280 pts/0    S+   12:18   0:00 tmux"                                                                                                                                                                         
## [10] "user         118  0.0  0.0  28456  2768 ?        Ss   12:18   0:00 tmux"                                                                                                                                                                         
## [11] "user         119  0.1  0.0  24524  7600 pts/1    Ss+  12:18   0:00 -bash"                                                                                                                                                                        
## [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"                           
## [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')"                       
## [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')"                       
## [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\")"
## [16] "user         399  0.0  0.0  38220  3132 ?        R    12:19   0:00 ps aux"
\end{verbatim}
\end{kframe}
\end{knitrout}

ok

t
t

t

t

t

t
t

t
ok



\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlstd{n} \hlkwb{<-} \hlstd{n} \hlopt{+} \hlnum{0}
\hlkwd{Sys.sleep}\hlstd{(}\hlnum{0}\hlstd{)}
\hlkwd{message}\hlstd{(}\hlkwd{cat}\hlstd{(n,} \hlstr{"secs later"}\hlstd{))}
\end{alltt}
\begin{verbatim}
## 0 secs later
\end{verbatim}


{\ttfamily\noindent\itshape\color{messagecolor}{\#\# }}\end{kframe}
\end{knitrout}




t

t

ok

t
t

t

t

t

t

ok

t
t

t

t

t

t

ok

t
t

t

t

t

t

ok

t
t

t

t

t

t

ok

t

t

t

t

t


\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlkwd{message}\hlstd{(}\hlnum{1}\hlopt{:}\hlnum{10}\hlstd{)}
\end{alltt}


{\ttfamily\noindent\itshape\color{messagecolor}{\#\# 12345678910}}\end{kframe}
\end{knitrout}

ok

t

t

t

t

t


\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlkwd{message}\hlstd{(}\hlnum{1}\hlopt{:}\hlnum{10}\hlstd{)}
\end{alltt}


{\ttfamily\noindent\itshape\color{messagecolor}{\#\# 12345678910}}\end{kframe}
\end{knitrout}

ok

t

t

t

t

t


\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlkwd{message}\hlstd{(}\hlnum{1}\hlopt{:}\hlnum{10}\hlstd{)}
\end{alltt}


{\ttfamily\noindent\itshape\color{messagecolor}{\#\# 12345678910}}\end{kframe}
\end{knitrout}

ok

t

t

t

t

t


\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlkwd{message}\hlstd{(}\hlnum{1}\hlopt{:}\hlnum{10}\hlstd{)}
\end{alltt}


{\ttfamily\noindent\itshape\color{messagecolor}{\#\# 12345678910}}\end{kframe}
\end{knitrout}



\end{document}