I've just noticed whenever I build and reload a package, I have this new object "oldLC." It's never been there before, so why is it appearing now, and how can I make it stop? The only thing I can think of that has changed since the last time I made a package until now is that I installed the newest rstudio.
> load_all()
Loading tmp
> ls()
character(0)
Restarting R session...
> library(tmp)
> ls()
[1] "oldLC"
> oldLC
[1] "en_US.UTF-8"
> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tmp_0.1 roxygen2_3.1.0 devtools_1.4.1
loaded via a namespace (and not attached):
[1] brew_1.0-6 codetools_0.2-8 digest_0.6.4 evaluate_0.5.1
[5] httr_0.2 memoise_0.1 parallel_3.0.2 Rcpp_0.11.0
[9] RCurl_1.95-4.1 stringr_0.6.2 tools_3.0.2 whisker_0.3-2
oldLC
is a temporary object created by the "SessionBuild.cpp" script.
Here's the relevant snippet from RStudio's GitHub page that explains why it contains locale information:
// format the command to send to R boost::format cmdFmt( "suppressPackageStartupMessages(" "{oldLC <- Sys.getlocale(category = 'LC_COLLATE'); " " Sys.setlocale(category = 'LC_COLLATE', locale = 'C'); " " on.exit(Sys.setlocale(category = 'LC_COLLATE', locale = oldLC));" " %1%; }" ")");
I don't know why it's appearing with the most recent update or how to make it stop, but it's something the RStudio folks will want to fix in a future update.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With