Exploring the workspace

The working directory

[1] "/home/dwoll/RExREpos/tmp"

Create and remove objects

Create some objects - names have to start with a letter. After that, names can contain digits, underscores, and dots. See help(Reserved) for names that cannot be used.

 [1] "args"         "Aval"         "Bval"         "Cval"         "dirMd"       
 [6] "dirR"         "dirTmp"       "dwKnit"       "fIn"          "fName"       
[11] "fOut"         "gitHubLinks"  "markdEngine"  "postProcess"  "repos"       
[16] "sanitizeMath" "siteGen"     

List available objects

[1] "Cval"
[1] TRUE
[1] FALSE

Remove objects

[1] 7
Error in eval(expr, envir, enclos): object 'Aval' not found

Show and rename objects

Show objects

[1] 15
[1] 15
[1] 4.5
NULL
[1] 4.5
[1] 4.5

Rename objects

 [1] "args"         "Bval"         "Cval"         "dirMd"        "dirR"        
 [6] "dirTmp"       "dwKnit"       "fIn"          "fName"        "fOut"        
[11] "gitHubLinks"  "markdEngine"  "postProcess"  "repos"        "sanitizeMath"
[16] "siteGen"      "varName"     
[1] 4.5

Environments and search path

 [1] ".GlobalEnv"        "package:stringr"   "package:knitr"    
 [4] "package:stats"     "package:graphics"  "package:grDevices"
 [7] "package:utils"     "package:datasets"  "package:methods"  
[10] "Autoloads"         "package:base"     

How R Searches and Finds Stuff

Session history

By default, savehistory() saves the command history to the file .Rhistory in the current working directory.

By default, save.image() saves all objects in the workspace to the file .RData in the current working directory.

Get the article source from GitHub

R markdown - markdown - R code - all posts