Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning message at R startup (slidify, rmarkdown)

When I startup my R (in RStudio IDE), I receive the warning:

Warning: namespace ‘slidify’ is not available and has been replaced by .GlobalEnv when processing object ‘.SLIDIFY_ENV’

Yesterday I uninstalled slidify (and slidifyLibraries) as this package interfered with regular use or .Rmd (Rmarkdown) files (when I pushet knit button in RStudio, all the .Rmd files were rendered as slidify slides, despite the fact that they had to be rendered as usual Rmarkdown files).

Question: How can I get rid of the warning message at the startup?

like image 253
GegznaV Avatar asked Dec 14 '22 06:12

GegznaV


2 Answers

Warning: namespace ‘slidify’ is not available and has been replaced by .GlobalEnv when processing object ‘.SLIDIFY_ENV’

That is telling you there's an object called .SLIDIFY_ENV in your R workspace at startup which is associated with the now-missing slidify namespace. Remove it (rm(.SLIDIFY_ENV) should work), save your workspace. Restart R and it shouldn't re-occur.

like image 66
Spacedman Avatar answered Dec 16 '22 19:12

Spacedman


You probably had .RData in your workspace, which contains those variables.

If you remove .RData file, then you will not be going to see the warning message.

like image 44
Kim Avatar answered Dec 16 '22 20:12

Kim