Basic things to type

What is my working directory. These are BASH chunks, not R chunks!

$ pwd
output: /tmp
$ ls
output: 15640-rsession
output: 15640-rsession.pid
output: 24866-rsession
output: 24866-rsession.pid
output: asd.txt
output: babel-28117_h8
output: babel-5979u2u
output: burl28473f8c.html
output: burl2886IUM.html
output: burl3921_rc.html
output: burl3938l8o.html
output: burl4353Kiu.html
output: burl6322dlJ.html
output: burl8233esl.html
output: config-err-8IMAYP
output: config-err-jw9Ayl
output: config-err-ludl8K
output: config-err-mcTTv0
output: docview1000
output: elpa
output: emacs-25.1
output: emacs-25.1.tar.gz
output: github
output: kelly
output: kwallet5_pauljohn.socket
output: kwallet_pauljohn.socket
output: mozilla_pauljohn0
output: mytest1.sh
output: mytest.sh
output: orbit-pauljohn
output: plugtmp
output: qtsingleapp-RStudi-c679-3e8-lockfile
output: RtmpezQbXV
output: sc
output: systemd-private-6d80d4091380466ab8ec3c5348d8e0fe-colord.service-ad3y7Y
output: systemd-private-6d80d4091380466ab8ec3c5348d8e0fe-rtkit-daemon.service-YGt1vl
output: systemd-private-6d80d4091380466ab8ec3c5348d8e0fe-systemd-timesyncd.service-R8WjXW
output: tmps26h712c
output: XEB4QY.tmp

Here is how I change directory for following bash chunks. Note engine = bash

$ opts_knit$set(root.dir="~")
$ ls
output: 50-synaptics.conf
output: 60-synaptics.conf
output: 61-evdev-local-pj.hwdb
output: 61-evdev-local-pu.hwdb
output: 90-libinput.conf
output: 90-synaptics.conf~
output: 90-synaptics.conf-20160729
output: adsf.R
output: #afd.R#
output: #asdf.R#
output: Backgrounds
output: Best_of_Lawrence-CRMDA.jpg
output: bin
output: CRMDA
output: crmda-memo.tex
output: dell_precision_ubuntu.txt
output: Dell_Ubuntu.txt
output: Desktop
output: Documents
output: dot.emacs.d
output: Downloads
output: Dropbox
output: emacs25
output: #flope.R#
output: #flop.R#
output: flop.R~
output: Fridgerator=241856000en.pdf
output: GIT
output: #git-lfs-bfg-guides.txt#
output: git-lfs-bfg-guides.txt
output: git-lfs-bfg-guides.txt~
output: gittest
output: gtk.css
output: IPaddresses.txt
output: KU_supermoon.jpg
output: libinput.txt
output: LinuxDownloads
output: mail
output: mount.crmda.archive
output: mount.crmda.pauljohn
output: mount.crmda.procedures
output: mount.crmda.projects
output: mount.crmda.users
output: mount.crmda.workgroups
output: Music
output: nvidiafix.sh
output: nvidia-pipeline.sh
output: Pictures
output: PJ_Health_Open_Enrollment-20161029.pdf
output: png1024x768.png
output: pps.R
output: ps
output: Public
output: R
output: random.R
output: random.R~
output: Reich-Quantile_Regression_Bayesian-Biostat-2010-337-52.pdf
output: Research
output: Rplots1.pdf
output: Rplots2.pdf
output: Rplots3.pdf
output: Rplots.pdf
output: sasuser.v94
output: signatures
output: SparkleShare
output: ssh-archive-keys
output: SVN
output: swapfix.txt
output: swarm
output: tables-slides.lyx
output: tables-slides.lyx~
output: Templates
output: texmf
output: tmp
output: tmpout
output: Trash
output: TrueMounted
output: TurboTax
output: upgrade-R.txt
output: Videos
output: VM
output: work
output: xfce4-keyboard-shortcuts.xml
output: xinput.conf
output: xorg.conf