## Language and Locale settings -- but rather use Sys.getlocale()
s[grep("^L(ANG)", names(s))]
LANG en_US.UTF-8
View(fn)
print(pwd())
Error in pwd() : could not find function "pwd"
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.nb.html"
[13] "TEST.Rmd" "Untitled.ipynb copy"
[15] "weblist.md" "z.Rproj"
ls
function (name, pos = -1L, envir = as.environment(pos), all.names = FALSE,
pattern, sorted = TRUE)
{
if (!missing(name)) {
pos <- tryCatch(name, error = function(e) e)
if (inherits(pos, "error")) {
name <- substitute(name)
if (!is.character(name))
name <- deparse(name)
warning(gettextf("%s converted to character string",
sQuote(name)), domain = NA)
pos <- name
}
}
all.names <- .Internal(ls(envir, all.names, sorted))
if (!missing(pattern)) {
if ((ll <- length(grep("[", pattern, fixed = TRUE))) &&
ll != length(grep("]", pattern, fixed = TRUE))) {
if (pattern == "[") {
pattern <- "\\["
warning("replaced regular expression pattern '[' by '\\\\['")
}
else if (length(grep("[^\\\\]\\[<-", pattern))) {
pattern <- sub("\\[<-", "\\\\\\[<-", pattern)
warning("replaced '[<-' by '\\\\[<-' in regular expression pattern")
}
}
grep(pattern, all.names, value = TRUE)
}
else all.names
}
<bytecode: 0x7fe35a4613c8>
<environment: namespace:base>
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.