Why does not trace() function work in R-Studio? - r

I am trying to see the source code of the ga function from the GA package in R in order to edit it. R-Studio is trying to open a window but, nothing comes up. When I tried for the mutate function, it can open a window. Also, when I tried trace(ga, edit = TRUE) in base R, it works. I am using the newest version of R-Studio, too. I wonder what I am doing wrong.
Here is the sessionInfo for both base R and R-Studio.
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Related

Why changing R version from global options won't affect R version used in the console?

I am trying to figure out which version of R is currently being used by Rstudio. I changed the R version under: tools/global options/general/ R sessions/ R version.
But the version being used by the console seems not affected. I also tried restarting the R session under: Session/ Restart R. Running R.version in console prints the version 4.0.5 yet I have changed the version of R from global options.
here is a screenshot of what I see on Rsutio.

Why do I get binary numbers instead of correlation values in GGally::ggpairs plot?

I just want to do a simple correlation matrix plot. If I do:
library(GGally)
data(flea)
ggpairs(flea, columns = 2:4)
I get these strange numbers in the top triangle:
Why?
First, I installed the CRAN version, and it happened to me. Right now, I have the GitHub version, and the same thing happens to me.
R version 4.0.2 (2020-06-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.1 LTS

knit to PDF not working R V4.0.0 RStudio V1.2.5042

Unable to get RStudio to knit to PDF post-RV4.0.0 update HTML, WORD work).
Error returned: Searching for luatex.dll, which does not seem to install following (i) install.packages('tinytex') (ii) tinytex::install_tinytex().
Curiously, luatex.dll is found in my older 3.5.3 and 3.6.3 .\TinyTeX\bin\win32 directories. rTools is current for R4.0.0, with path added per website. Similarly, pdflatex.fmt mising in install from 4.0.0. In all cases followed advice from Yihui Xie et al. websites.
Have tried several re-installs, including a full install of MikTeX. No joy.
tinytex Version is 0.22. basic session info is:
sessionInfo()
R version 4.0.0 (2020-04-24)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)
I am puzzled because I have successfully installed tinytext etc on 3.X.X R and previous versions of RStudio, and knited PDFs (including use of bookkdown) with no problems. Thx in advance.

R Studio not using the newest R version on my computer

I installed R 3.5.3, then restarted my Windows 7 computer. Next I launched R Studio and ran the command sessionInfo() and am informed that R Studio is still utilizing R version 3.5.1.
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
I went to the Tools > Global Options > General > R Version and get a screen like this
(source: rstudio.com)
Although I could simply select the specific version of R I'd like to use (eg 3.5.3) I want R Studio to use the default version of R on my machine, which I'd always want to be the most current version of R on my machine.
How do I achieve this? I'm using the installr package to update R every six months or so. It seems installr doesn't force Windows 7 to realize I've got a new R version on my system.

DT::datatable() returns empty widget

For some reason, in one of my shiny projects, DT::datatable(iris) returns empty window, even in interactive mode. So, it turns on 'Viewer' tab but nothing shows there. Not sure how to debug it, as in other projects it works fine.
R version 3.4.1 (2017-06-30)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Resources