head(s, 12)# using the Dlist print() method
__CF_USER_TEXT_ENCODING
0x1F5:0x0:0x0
Apple_PubSub_Socket_Render
/private/tmp/com.apple.launchd.3MecAID1KO/Render
CLICOLOR_FORCE 1
DISPLAY :0
DYLD_FALLBACK_LIBRARY_PATH
/Library/Frameworks/R.framework/Resources/lib:/Users/atang148/lib:/usr/local/lib:/usr/lib:::/lib:/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server
EDITOR vi
GIT_ASKPASS rpostback-askpass
HOME /Users/atang148
LANG en_US.UTF-8
LC_CTYPE en_US.UTF-8
LN_S ln -s
LOGNAME atang148
display(fn)
Error in display(fn) : could not find function "display"
dir()
[1] "_config.yml" "ActionNote.txt"
[3] "DoSomething.R" "Exploring_File_System.ipynb"
[5] "filelist.Rmd" "filesystemplay.py"
[7] "notebook1.Rmd" "README.md"
[9] "system_commands.ipynb" "TEST copy.nb.html"
[11] "TEST copy.Rmd" "TEST.Rmd"
[13] "Untitled.ipynb copy" "weblist.md"
[15] "z.Rproj"
dir()
[1] "_config.yml" "ActionNote.txt"
[3] "DoSomething.R" "Exploring_File_System.ipynb"
[5] "filelist.Rmd" "filesystemplay.py"
[7] "notebook1.Rmd" "README.md"
[9] "system_commands.ipynb" "TEST copy.nb.html"
[11] "TEST copy.Rmd" "TEST.Rmd"
[13] "Untitled.ipynb copy" "weblist.md"
[15] "z.Rproj"
Add a new chunk by clicking the Insert Chunk button on the toolbar or by pressing Cmd+Option+I.
When you save the notebook, an HTML file containing the code and output will be saved alongside it (click the Preview button or press Cmd+Shift+K to preview the HTML file).
The preview shows you a rendered HTML copy of the contents of the editor. Consequently, unlike Knit, Preview does not run any R code chunks. Instead, the output of the chunk when it was last run in the editor is displayed.