title: I detached packages and now I can't assign values
body: <p>Oops. I unchecked a bunch of packages in RStudio and I think I unchecked a critical one that I shouldn't have touched. Now, I can't even do basic things like assign a variable a value e.g., <code>a &lt;- 1</code>. I keep getting the error: </p>
  
  <blockquote>
  <pre><code>Error in object.size(obj) : could not find function "object.size"
  </code></pre>
  </blockquote>
  
  <p>Here's the code from when I detached packages. I can only assume something in here caused the problem: </p>
  
  <pre><code>&gt; detach("package:bindrcpp", unload=TRUE)
  Warning message:
  ‘bindrcpp’ namespace cannot be unloaded:
    namespace ‘bindrcpp’ is imported by ‘dplyr’ so cannot be unloaded 
  &gt; detach("package:dplyr", unload=TRUE)
  Warning message:
  ‘dplyr’ namespace cannot be unloaded:
    namespace ‘dplyr’ is imported by ‘broom’, ‘recipes’ so cannot be unloaded 
  &gt; detach("package:readr", unload=TRUE)
  &gt; detach("package:vtreat", unload=TRUE)
  &gt; detach("package:broom", unload=TRUE)
  Warning message:
  ‘broom’ namespace cannot be unloaded:
    namespace ‘broom’ is imported by ‘recipes’ so cannot be unloaded 
  &gt; detach("package:caret", unload=TRUE)
  &gt; detach("package:datasets", unload=TRUE)
  &gt; detach("package:DBI", unload=TRUE)
  Error: package ‘DBI’ is required by ‘RJDBC’ so will not be detached
  &gt; detach("package:ggplot2", unload=TRUE)
  &gt; detach("package:graphics", unload=TRUE)
  Warning message:
  ‘graphics’ namespace cannot be unloaded:
    namespace ‘graphics’ is imported by ‘rpart’, ‘geometry’, ‘pls’, ‘stats’, ‘kernlab’, ‘class’, ‘dimRed’, ‘MASS’, ‘nlme’, ‘survival’, ‘lava’, ‘scales’, ‘CVST’, ‘timeDate’, ‘psych’, ‘Matrix’, ‘colorspace’, ‘randomForest’, ‘lattice’, ‘robustbase’, ‘stats4’, ‘prodlim’, ‘splines’, ‘sfsmisc’, ‘ddalpha’, ‘magic’ so cannot be unloaded 
  &gt; detach("package:grDevices", unload=TRUE)
  Warning message:
  ‘grDevices’ namespace cannot be unloaded:
    namespace ‘grDevices’ is imported by ‘rpart’, ‘graphics’, ‘grid’, ‘pls’, ‘stats’, ‘kernlab’, ‘dimRed’, ‘MASS’, ‘crayon’, ‘lava’, ‘psych’, ‘Matrix’, ‘colorspace’, ‘randomForest’, ‘lattice’, ‘robustbase’, ‘stats4’, ‘sfsmisc’, ‘ddalpha’ so cannot be unloaded 
  &gt; detach("package:glue", unload=TRUE)
  Warning message:
  ‘glue’ namespace cannot be unloaded:
    namespace ‘glue’ is imported by ‘tidyselect’, ‘dplyr’, ‘tidyr’ so cannot be unloaded 
  &gt; detach("package:lattice", unload=TRUE)
  Warning message:
  ‘lattice’ namespace cannot be unloaded:
    namespace ‘lattice’ is imported by ‘nlme’, ‘psych’, ‘Matrix’ so cannot be unloaded 
  &gt; detach("package:magrittr", unload=TRUE)
  Warning message:
  ‘magrittr’ namespace cannot be unloaded:
    namespace ‘magrittr’ is imported by ‘dplyr’, ‘stringr’, ‘purrr’, ‘recipes’, ‘tidyr’ so cannot be unloaded 
  &gt; detach("package:methods", unload=TRUE)
  Error: package ‘methods’ is required by ‘RJDBC’ so will not be detached
  &gt; detach("package:randomForest", unload=TRUE)
  &gt; detach("package:rJava", unload=TRUE)
  Error: package ‘rJava’ is required by ‘RJDBC’ so will not be detached
  &gt; detach("package:reshape2", unload=TRUE)
  Warning message:
  ‘reshape2’ namespace cannot be unloaded:
    namespace ‘reshape2’ is imported by ‘broom’ so cannot be unloaded 
  &gt; detach("package:RJDBC", unload=TRUE)
  &gt; detach("package:RODBC", unload=TRUE)
  &gt; detach("package:scales", unload=TRUE)
  &gt; detach("package:stats", unload=TRUE)
  Warning message:
  ‘stats’ namespace cannot be unloaded:
    namespace ‘stats’ is imported by ‘DEoptimR’, ‘rpart’, ‘stringi’, ‘dplyr’, ‘lubridate’, ‘reshape2’, ‘ModelMetrics’, ‘pls’, ‘munsell’, ‘kernlab’, ‘data.table’, ‘class’, ‘foreign’, ‘dimRed’, ‘MASS’, ‘nlme’, ‘crayon’, ‘survival’, ‘mnormt’, ‘nnet’, ‘withr’, ‘lava’, ‘broom’, ‘CVST’, ‘timeDate’, ‘psych’, ‘plyr’, ‘Matrix’, ‘recipes’, ‘lattice’, ‘ipred’, ‘robustbase’, ‘stats4’, ‘prodlim’, ‘splines’, ‘sfsmisc’, ‘ddalpha’, ‘magic’ so cannot be unloaded 
  &gt; detach("package:teradataR", unload=TRUE)
  &gt; detach("package:utils", unload=TRUE)
  Warning message:
  ‘utils’ namespace cannot be unloaded:
    namespace ‘utils’ is imported by ‘Rcpp’, ‘stringi’, ‘rJava’, ‘dplyr’, ‘lubridate’, ‘reshape2’, ‘abind’, ‘rstudioapi’, ‘grid’, ‘rlang’, ‘stats’, ‘data.table’, ‘foreign’, ‘dimRed’, ‘nlme’, ‘crayon’, ‘survival’, ‘nnet’, ‘tibble’, ‘lava’, ‘broom’, ‘pkgconfig’, ‘timeDate’, ‘psych’, ‘Matrix’, ‘recipes’, ‘lattice’, ‘ipred’, ‘robustbase’, ‘wrapr’, ‘foreach’, ‘sfsmisc’, ‘tidyr’, ‘ddalpha’, ‘magic’ so cannot be unloaded 
  </code></pre>