R crashes when saving a file mac OSX Sierra - r

Any time I try to save an image file, and lately any file at all, R crashes. I'm on Mac OS X Sierra version 10.12.6, R version 3.4.1 (2017-06-30) -- "Single Candle"
Anyone else have the same problem? How did you solve it?

I also have this intermittent issue and have experienced it for over a year, on more that one machine, on El Capitan and Sierra and with multiple versions of R.
There are some helpful suggestions here, but no solution. R freezes / hangs in Mac OS X Yosemite
I find it crashes less if I save to the default location with the default name and rename the file afterwards.

Related

Error: installing tinytex (tinytex::install_tinytex()) in rstudio

I am trying to knit reports to pdf documents in rstudio.
I have successfully installed rtools and added it to my PATH, and also installed rmarkdown and tinytex. However whenever I run tinytex::install_tinytex() the following error about tlmgr is thrown.
Error in system2("tlmgr", args, ...) : '"tlmgr"' not found
xfun::session_info('tinytex')
R version 4.1.0 (2021-05-18) Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042), RStudio 1.4.1717
Package version: graphics_4.1.0 grDevices_4.1.0 stats_4.1.0
tinytex_0.32 tools_4.1.0 utils_4.1.0 xfun_0.23
I have installed tinytex with mush more relative ease in the past and have now tried this a gazillion times without any joy. Please any help will appreciated on this or at least a great guide on how to render tables in word(.docx) outputs.
I don't really know how I did this but let me just mention the obvious steps for anyone who meets such errors in the future.
I deleted everything, R and RStudio folders and emptied all folders from the recycle bin.
Reinstalled R
Reinstalled RStudio
Installed rmarkdown
Then tinytex::install_tinytex()
See the thing is I had done this a thousand times and I don't really know why this works now, but hey it's a free and new program, R.
And I will keep this open incase of any serious explanations and thanks for those that at least tried to help.

How can I determine and increase the memory allocated to R on a Mac

Variants of this question have been asked before (e.g., here, here, here, and here), but none of the suggested solutions works for me.
R returns an error message ("Error: vector memory exhausted (limit reached?)"), even though there is available memory on my computer (a 2019 MacBook Pro with 16 GB memory), as indicated by the Memory Pressure monitor in the Memory tab of the Activity Monitor.
I have set the memory both from the command line (using open .Renviron) and from RStudio (using usethis::edit_r_environ) , as suggested here. Neither solution works.
Has anybody found other solutions to this problem? Also, is there a way to determine, in RStudio, the maximum memory allocated? Sys.getenv() does not return this information.
I do not encounter this problem in base R -- only RStudio.
Session info:
R version 4.0.3 (2020-10-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16

Unable to access R from QGIS 2.18.9 on Macbook

I have been unable to run R from within QGIS on my Macbook. I have R version 3.4.0 installed and QGIS 2.18.9 on macOSX Sierra.
"The error message I receive is
Missing dependency.This algorithm cannot be run :-(
This algorithm requires R to be run.Unfortunately, it seems that R is not installed
in your system, or it is not correctly configured to be used from QGIS
Click here to know more about how to install and configure R to be used with QGIS"
Error Image...
I get the same thing on my MAC. Researching discovered that the MacOS X from El Capitan and later (Sierra is later) implemented some stringent sandboxing security that doesn't allow R to be seen from the QGIS location. Hence the error. So far I have not discovered a workable solution. The solutions suggested for El Capitan do not work for Sierra.

updating both Rprofile and R to the same version

Is there any idea, how I can find the version of my Rscript?
The issue is, once I am running R in mac terminal, the version is 3.2.2 but running via Rscript the version is changed to 3.0.2. I would like to know how to update my Rscript's version!
I cannot comment, because I have less than 50 rep, so I'm writing here.
Are you under macOS Sierra?
When I upgraded R to version 3.4.0 after upgrading my Mac to macOS 10.12 (Sierra) I had some problems with rJava. While I searched for a solution, I also noticed that the R version numbers displayed in the GUI and the terminal differed. I am not quite sure what that problem was, but part of my solution was to completely uninstall R (note the comments about using which R !).

`help.search()` returns error in RStudio

In RStudio,
help.search('slider')
Returns this error:
Error in vignette_type(Outfile) : Vignette product ‘NA’ does not have a known filename extension (‘NA’)
However:
Other searches (such as help.search('ARMA')) appear to be working correctly in RStudio.
Running help.search('slider')in the R for Mac OS X GUI works as expected.
Any ideas what the problem might be?
Setup:
MBP OS X Version 10.9.4
RStudio Version 0.98.978
R version 3.1.1 (2014-07-10) -- "Sock it to Me"

Resources