All my kbd shortcuts
for DescToolsAddins pkg work fine:
CTRL+H = Head(iris) OK!
CTRL+Y = Summary(iris) OK!
CTRL+T = Str(iris) OK!
...except for
CTRL+E = Desc(iris)
which fails with Error message:
> Desc(iris)
Error in getExportedValue(pkg, name) :
cannot open file '~/R/i686-pc-linux-gnu-library/3.5/DescTools/data/Rdata.rdb': No such file or directory
In addition: There were 21 warnings (use warnings() to see them)
Help!! SFdude Rstudio 1.1.463 R 3.5.1 Linux Ubuntu 14.04 LTS 32bits.
sessionInfo()
R version 3.5.1 RC (2018-06-24 r74934)
Platform: i686-pc-linux-gnu (32-bit)
Running under: Ubuntu 14.04.6 LTS
In the default Rstudio: Project(None)
if I do:
library(DescTools) # and then do:
Desc(iris)
it WORKS!.
Now, suppose I create in Rstudio a totally new Project, called: "WA".
I switch in Rstudio to the new WA Project.
I do :
library(DescTools)
Desc(iris)
in the new WA Project: It WORKS!
It works fine using either:
Desc(iris)
the keyboard shortcut: CTRL+E
the Desc command from the Addins dropdown Menu.
GREAT!.
So finally, in both: Project(None) or in Project: WA,
the Rstudio Packages panel should show only: [X] DescTools as "loaded",
but do NOT load: [ ] DescToolsAddins.
I thought
I needed to LOAD both packages...Nope!.
Seems only DescTools should be loaded
and everything will work fine...
Why should only the pkg: DescTools
be required for everything to work ok,
but no need to load the pkg: DescToolsAddins?.
(leave that PKG UNchecked / not loaded...).
Curious...
(I may be missing a fundamental concept here, Christophe).
I think this is because the DescToolsAddins only provide the addins feature for RStudio IDE and when you call the Addin, it calls what is required without you, the user, to explicitly load the library. It is how addins works.
If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:
Thank you, Christophe!.
Your explanation makes 100% sense.
Marked as "Solution", as required.
If I may,
one last quick question:
how to automatically "load"
the DescTool pkg
into the new WA Project?,
(instead of my typing: > library(DescTool) every rime I switch to the WA Project?).
I believe the good practice is to load the library with ˋlibrary()` at the beginning of your script. It is the better way to insure reproductible code.