Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
0
votes
0
answers
85
views
Can't clear check_language_envvar("LC_ALL") warning when running R scripts
Whenever I run an R script I get the following warning that I can't clear: ``` Warning messages: 1: In check_language_envvar("LC_ALL") : Changing language has no effect when envvar LC_ALL='C' 2: In check_language_envvar("LC_ALL") : Changing language has no effect when envvar LC_ALL='C' ``` When I ty...
Whenever I run an R script I get the following warning that I can't clear:
Warning messages:
1: In check_language_envvar("LC_ALL") :
Changing language has no effect when envvar LC_ALL='C'
2: In check_language_envvar("LC_ALL") :
Changing language has no effect when envvar LC_ALL='C'
When I type locale into iTerm, I get the following output:
LANG="en_US.UTF-8"
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL="C"
I have absolutely no idea how to solve the issue, any help would be greatly appreciated.
ravnos108
(1 rep)
May 16, 2024, 07:58 AM
• Last activity: May 16, 2024, 02:12 PM
1
votes
1
answers
687
views
How change $PATH for RStudio
I am trying to set my `$PATH` variable for RStudio. Somehow it just ignores the entry in my `~/.Renviron`. I added this lines: ``` PATH=$PATH:/opt/R/arm64/gfortran/bin R_MAX_VSIZE=100Gb ``` if I run `Sys.getenv("PATH")` it just shows my `PATH` without the addition I made. If I run `Sys.getenv("R_MAX...
I am trying to set my
$PATH
variable for RStudio. Somehow it just ignores the entry in my ~/.Renviron
. I added this lines:
PATH=$PATH:/opt/R/arm64/gfortran/bin
R_MAX_VSIZE=100Gb
if I run Sys.getenv("PATH")
it just shows my PATH
without the addition I made. If I run Sys.getenv("R_MAX_VSIZE")
it shows 100Gb
, so the .Renviron
file is recognized.
What am I doing wrong here?
gernophil
(349 rep)
Nov 23, 2022, 03:38 PM
• Last activity: Jan 18, 2024, 05:06 AM
1
votes
1
answers
1103
views
Installing R 4.2.2 (ARM) fails
I am trying to update from R 4.2.1 to R 4.2.2 via the .pkg installer. However, I can't install since I get the message `The installation failed. The installer encountered an error and let me contact the software manufacturer.` You can see a [similar case here](https://discussions.apple.com/thread/25...
I am trying to update from R 4.2.1 to R 4.2.2 via the .pkg installer. However, I can't install since I get the message
The installation failed. The installer encountered an error and let me contact the software manufacturer.
You can see a [similar case here](https://discussions.apple.com/thread/254559856) . Seems like the only available solution so far is to reinstall macOS and I really want to avoid that. Anyone else having this problem? I also tried to trash the R.app
, but it was of no use. I could also delete the R.framework
folder, but I doubt it will be of any use. Any ideas here?
EDIT: I could succesfully install via commandline $ sudo installer -pkg R-4.2.2-arm64.pkg -target /
. The same problem occurred trying to install XQuartz-2.8.5, which I could also succesfully install via CLI. Not all .pkg fail via GUI though. I could install Adobe Reader successfully via GUI.
/var/log/install.log
show the same error for RStudio and XQuartz:
2023-03-02 14:12:13+01 [device] installd: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=110 "Beim Extrahieren von Dateien aus dem Paket „R-4.2.2-arm64.pkg“ ist ein Fehler aufgetreten." UserInfo={NSLocalizedDescription=Beim Extrahieren von Dateien aus dem Paket „R-4.2.2-arm64.pkg“ ist ein Fehler aufgetreten., NSURL=file:///Users/gernophil/Downloads/R-4.2.2-arm64.pkg#R-fw.pkg, PKInstallPackageIdentifier=org.R-project.arm64.R.fw.pkg, NSUnderlyingError=0x13c289e50 {Error Domain=PKXARArchiveErrorDomain Code=101 "archive open failed" UserInfo={NSURL=file:///Users/gernophil/Downloads/R-4.2.2-arm64.pkg, NSFileOwnerAccountID=501, NSFileHFSTypeCode=0, NSFileSystemFileNumber=33338670, NSFileExtensionHidden=false, NSFileSystemNumber=16777234, NSFileSize=90203062, NSFileGroupOwnerAccountID=20, NSFileHFSCreatorCode=0, NSFileOwnerAccountName=gernophil, NSFilePosixPermissions=420, NSFileCreationDate=2023-03-02 13:01:34 +0000, NSFileType=NSFileTypeRegular, NSFileProtectionKey=NSFileProtectionCompleteUntilFirstUserAuthentication, NSFileGroupOwnerAccountName=staff, NSFileReferenceCount=1, NSFileModificationDate=2023-03-02 13:01:40 +0000, NSLocalizedDescription=archive open failed}}} {
NSLocalizedDescription = "Beim Extrahieren von Dateien aus dem Paket \U201eR-4.2.2-arm64.pkg\U201c ist ein Fehler aufgetreten.";
NSURL = "file:///Users/gernophil/Downloads/R-4.2.2-arm64.pkg#R-fw.pkg";
NSUnderlyingError = "Error Domain=PKXARArchiveErrorDomain Code=101 \"archive open failed\" UserInfo={NSURL=file:///Users/gernophil/Downloads/R-4.2.2-arm64.pkg, NSFileOwnerAccountID=501, NSFileHFSTypeCode=0, NSFileSystemFileNumber=33338670, NSFileExtensionHidden=false, NSFileSystemNumber=16777234, NSFileSize=90203062, NSFileGroupOwnerAccountID=20, NSFileHFSCreatorCode=0, NSFileOwnerAccountName=gernophil, NSFilePosixPermissions=420, NSFileCreationDate=2023-03-02 13:01:34 +0000, NSFileType=NSFileTypeRegular, NSFileProtectionKey=NSFileProtectionCompleteUntilFirstUserAuthentication, NSFileGroupOwnerAccountName=staff, NSFileReferenceCount=1, NSFileModificationDate=2023-03-02 13:01:40 +0000, NSLocalizedDescription=archive open failed}";
PKInstallPackageIdentifier = "org.R-project.arm64.R.fw.pkg";
}
2023-03-02 14:12:13+01 [device] installd: PackageKit: Cleared responsibility for install from 9550.
2023-03-02 14:12:13+01 [device] installd: PackageKit: Cleared permissions on Installer.app
2023-03-02 14:12:13+01 [device] installd: PackageKit: Hosted team responsible for install has been cleared.
2023-03-02 14:12:13+01 [device] installd: PackageKit: Running idle tasks
2023-03-02 14:12:13+01 [device] installd: PackageKit: Done with sandbox removals
2023-03-02 14:12:13+01 [device] installd: PackageKit: Removing client PKInstallDaemonClient pid=9550, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
2023-03-02 14:12:13+01 [device] Installer: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=110 "Beim Extrahieren von Dateien aus dem Paket „R-4.2.2-arm64.pkg“ ist ein Fehler aufgetreten." UserInfo={NSUnderlyingError=0x6000018040f0 {Error Domain=PKXARArchiveErrorDomain Code=101 "archive open failed" UserInfo={NSURL=file:///Users/gernophil/Downloads/R-4.2.2-arm64.pkg, NSFileOwnerAccountID=501, NSFileHFSTypeCode=0, NSFileSystemFileNumber=33338670, NSFileExtensionHidden=false, NSFileSystemNumber=16777234, NSFileSize=90203062, NSFileGroupOwnerAccountID=20, NSFileHFSCreatorCode=0, NSFileOwnerAccountName=gernophil, NSFilePosixPermissions=420, NSFileCreationDate=2023-03-02 13:01:34 +0000, NSFileType=NSFileTypeRegular, NSFileProtectionKey=NSFileProtectionCompleteUntilFirstUserAuthentication, NSFileGroupOwnerAccountName=staff, NSFileReferenceCount=1, NSFileModificationDate=2023-03-02 13:01:40 +0000, NSLocalizedDescription=archive open failed}}, NSURL=file:///Users/gernophil/Downloads/R-4.2.2-arm64.pkg#R-fw.pkg, PKInstallPackageIdentifier=org.R-project.arm64.R.fw.pkg, NSLocalizedDescription=Beim Extrahieren von Dateien aus dem Paket „R-4.2.2-arm64.pkg“ ist ein Fehler aufgetreten.}
2023-03-02 14:12:14+01 [device] Installer: Install failed: Die Installation ist aufgrund eines Fehlers fehlgeschlagen. Wende dich an den Hersteller der Software.
2023-03-02 14:12:14+01 [device] Installer: IFDInstallController 16DBF00 state = 8
2023-03-02 14:12:14+01 [device] Installer: Displaying 'Install Failed' UI.
2023-03-02 14:12:14+01 [device] Installer: 'Install Failed' UI displayed message:'Die Installation ist aufgrund eines Fehlers fehlgeschlagen. Wende dich an den Hersteller der Software.'.
(sorry for German)
gernophil
(349 rep)
Mar 2, 2023, 12:01 PM
• Last activity: Nov 27, 2023, 06:05 PM
0
votes
0
answers
78
views
Switch from GFortran "for R" 12.0 to 12.2
I am using the GFortran compiler 12.0 once available from https://mac.r-project.org/tools (old version available on archive.org). This was just a xz archive that was installed using `tar fxz gfortran-12.0.1-20220312-is-darwin20-arm64.tar.xz -C /`. There is now an update provided as a `.pkg` file. Do...
I am using the GFortran compiler 12.0 once available from https://mac.r-project.org/tools (old version available on archive.org).
This was just a xz archive that was installed using
tar fxz gfortran-12.0.1-20220312-is-darwin20-arm64.tar.xz -C /
. There is now an update provided as a .pkg
file. Does anyone know, if it's safe to uninstall the old version just by
rm -rf /opt/R/arm64/bin/gfortran
rm -rf /opt/R/arm64/gfortran
and then installing the new version by the .pkg
file. Unfortunately I haven't found information about updating by the developers.
gernophil
(349 rep)
May 16, 2023, 06:55 PM
3
votes
2
answers
1247
views
Is it possible to use R on an iPad?
I am new to coding and I am attempting to learn about [R](https://www.r-project.org) using online resources. I am wondering how to use R from an iPad when I’m away from a desktop/laptop (or if this is feasible at all)? I also don’t know much about operating systems, or the differences between a Mac...
I am new to coding and I am attempting to learn about [R](https://www.r-project.org) using online resources. I am wondering how to use R from an iPad when I’m away from a desktop/laptop (or if this is feasible at all)?
I also don’t know much about operating systems, or the differences between a Mac and an iPad (particularly differences that would affect software installation). So I’m thinking it will be quite difficult for me to learn to use R from an iPad if it’s at all possible. But if someone else happens to have done it and is willing to post instructions, I would give it a shot.
Rebecca
Dec 30, 2018, 03:05 AM
• Last activity: Apr 10, 2023, 01:12 PM
0
votes
0
answers
423
views
How to run an R script from the terminal
I've spent over a week on this problem, been down so many rabbit holes, and I'm about to pull my hair out. All I want to to is be able able to navigate to my folder in the terminal, run the command ```./program.R input.txt``` hit ```Enter```, and go. But I keep getting all these error about librarie...
I've spent over a week on this problem, been down so many rabbit holes, and I'm about to pull my hair out.
All I want to to is be able able to navigate to my folder in the terminal, run the command
./program.R input.txt
hit
, and go. But I keep getting all these error about libraries not loaded (: Library not loaded: @rpath/libreadline.6.2.dylib
) and needed to update the sudoer file and changing permissions and then the sudoer ID isn't right.
This should not be this difficult. What is going in here?
I'm also running Mac OS Big Sur 11.1, if that matters.
user2954167
(1 rep)
Sep 26, 2022, 02:22 PM
0
votes
1
answers
224
views
Hidden Python- and R-files: Safe to delete?
I am running macOS Catalina 10.15.7 on a 2020 MacBook Pro. I do a bit of programming in R and Python, and in my home directory I saw a bunch of hidden files: [![enter image description here][1]][1] [1]: https://i.sstatic.net/uoHTH.png There are files related to `.python_history`, `.r`, `.rstudio-des...
I am running macOS Catalina 10.15.7 on a 2020 MacBook Pro. I do a bit of programming in R and Python, and in my home directory I saw a bunch of hidden files:
There are files related to

.python_history
, .r
, .rstudio-desktop
, .jupyter
, ipython
etc. I'm not sure why they are placed here - is it safe to delete these files?
Tyler D
(103 rep)
Feb 12, 2021, 10:29 AM
• Last activity: Feb 12, 2021, 07:18 PM
1
votes
0
answers
67
views
"R cannot open because of a problem"
I've installed R 3.6.3 on a Mac OS X El Capitan, but when I try to open it I get a pop-up saying "R cannot open because of a problem". The message is not in English, but it's the same as this one (replace python2.7 by R): [![enter image description here][1]][1] [1]: https://i.sstatic.net/MdD4t.png I...
I've installed R 3.6.3 on a Mac OS X El Capitan, but when I try to open it I get a pop-up saying "R cannot open because of a problem".
The message is not in English, but it's the same as this one (replace python2.7 by R):
I've tried with older versions, I rebooted the computer, I uninstalled it and installed it again, but I keep getting the same message.
FYI, I had anaconda installed before and I also tried uninstalling it.

Burgi
(11 rep)
Sep 1, 2020, 12:50 AM
1
votes
1
answers
8890
views
Uninstalling R and R Studio from the mac
How to delete R from the mac. Currently, Tidyverse package no longer works and thus I have to reinstall the R. But, I am not able to fully delete the programme as it keeps creeping back. What to do to completely uninstall R and R Studio from the mac. I can’t locate a script to remove all the things...
How to delete R from the mac. Currently, Tidyverse package no longer works and thus I have to reinstall the R. But, I am not able to fully delete the programme as it keeps creeping back. What to do to completely uninstall R and R Studio from the mac.
I can’t locate a script to remove all the things these packages installed nor able to find support from the R community.
Is this documented anywhere?
Mike_116
(11 rep)
Jul 6, 2020, 01:47 PM
• Last activity: Jul 6, 2020, 07:19 PM
0
votes
1
answers
1249
views
Rstudio Server in Mac Mojave
I am trying to install Rstudio Server in Mac mini running on macOS Mojave. I followed [this link][1] to build Rstudio server from the source. I also looked at [this link][2]. I could successfully install it with no problems. But I get this error: ``` $ cd /usr/local/lib/rstudio-server/bin $ rserver...
I am trying to install Rstudio Server in Mac mini running on macOS Mojave. I followed this link to build Rstudio server from the source. I also looked at this link . I could successfully install it with no problems.
But I get this error:
$ cd /usr/local/lib/rstudio-server/bin
$ rserver --server-daemonize=0 --auth-minimum-user-id=500
rserver: command not found
I have the .plist and everything in the right place (needed to run rstudio server in the backend) but I don't get why does it say rserver command not found? I can provide any other detail if needed.
Ghosh
(1 rep)
Jan 21, 2020, 11:11 PM
• Last activity: Jan 22, 2020, 10:28 AM
1
votes
1
answers
514
views
RStudio Server Initialization Error on Mac El Capitan
I have installed RStudio Server using Homebrew on a Mac Pro Server with El Capitan. Then I followed instructions in the INSTALL file. When I launch RStudio Server from the host computer (http://localhost:8787) or remotely, it accepts my username and password but then I get this error: "RStudio Initi...
I have installed RStudio Server using Homebrew on a Mac Pro Server with El Capitan. Then I followed instructions in the INSTALL file. When I launch RStudio Server from the host computer (http://localhost:8787) or remotely, it accepts my username and password but then I get this error:
"RStudio Initialization Error: Unable to connect to service".
This seems to be common with Linux installs, but none of those posted solutions solve the problem on my Mac. I tried logging in as different users and administrators but I the same error message either way.
Tim Frasier
(11 rep)
Oct 9, 2016, 09:56 AM
• Last activity: Sep 17, 2019, 08:24 AM
2
votes
3
answers
1788
views
Rstudio Server vs El Capitan
I am trying to install RStudio Server in OSX El Capitan. I did these steps from terminal brew install openssl brew install homebrew/science/rstudio-server I have the login window at localhost:8787 but I can't login. If I run sudo rstudio-server status then I get Could not find service "com.rstudio.l...
I am trying to install RStudio Server in OSX El Capitan.
I did these steps from terminal
brew install openssl
brew install homebrew/science/rstudio-server
I have the login window at localhost:8787 but I can't login. If I run
sudo rstudio-server status
then I get
Could not find service "com.rstudio.launchd.rserver" in domain for
To check the installation I run
sudo rstudio-server verify-installation
and I get
21 Oct 2016 05:11:44 [rserver] ERROR system error 48 (Address already in use);
OCCURRED AT: rstudio::core::Error rstudio::core::http::initTcpIpAcceptor(SocketAcceptorService &, const std::string &, const std::string &) /tmp/rstudio-server-20161017-46697-nr3wo3/rstudio-
0.99.902/src/cpp/core/include/core/http/TcpIpSocketUtils.hpp:103; LOGGED FROM: int main(int, char *const *) /tmp/rstudio-server-20161017-46697-nr3wo3/rstudio-0.99.902/src/cpp/server/ServerMain.cpp:438
How can I fix this?
pachadotdev
(145 rep)
Oct 21, 2016, 05:12 AM
• Last activity: Nov 6, 2017, 04:27 AM
2
votes
1
answers
946
views
Install Rserve return an error
I am trying to install `Rserve` but it returns an error. > install.packages('Rserve') trying URL 'https://cran.rstudio.com/src/contrib/Rserve_1.7-3.tar.gz' Content type 'application/x-gzip' length 407390 bytes (397 KB) ================================================== downloaded 397 KB During start...
I am trying to install
Rserve
but it returns an error.
> install.packages('Rserve')
trying URL 'https://cran.rstudio.com/src/contrib/Rserve_1.7-3.tar.gz '
Content type 'application/x-gzip' length 407390 bytes (397 KB)
==================================================
downloaded 397 KB
During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C"
2: Setting LC_TIME failed, using "C"
3: Setting LC_MESSAGES failed, using "C"
4: Setting LC_MONETARY failed, using "C"
* installing *source* package 'Rserve' ...
** package 'Rserve' successfully unpacked and MD5 sums checked
checking whether to compile the server... yes
checking whether to compile the client... no
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files...
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking whether time.h and sys/time.h may both be included... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking return type of signal handlers... void
checking for memset... yes
checking for mkdir... yes
checking for rmdir... yes
checking for select... yes
checking for socket... yes
checking for srandomdev... yes
checking for library containing crypt... none required
checking crypt.h usability... no
checking crypt.h presence... no
checking for crypt.h... no
checking for socklen_t... yes
checking for connect... yes
checking whether to enable IPv6... no
checking for dlopen in -ldl... yes
checking openssl/rsa.h usability... no
checking openssl/rsa.h presence... no
checking for openssl/rsa.h... no
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating src/client/cxx/Makefile
config.status: creating src/config.h
** libs
clang -I/usr/local/Cellar/r/3.2.1_1/R.framework/Resources/include -DNDEBUG -DRSERVE_PKG -I. -Iinclude -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -fPIC -g -O2 -c RSserver.c -o RSserver.o
clang -I/usr/local/Cellar/r/3.2.1_1/R.framework/Resources/include -DNDEBUG -DRSERVE_PKG -I. -Iinclude -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -fPIC -g -O2 -c Rserv.c -o Rserv.o
Rserv.c:2976:16: warning: comparison of unsigned expression
I can not understand where is the problem.
This is my R version :
> version
_
platform x86_64-apple-darwin14.4.0
arch x86_64
os darwin14.4.0
system x86_64, darwin14.4.0
status
major 3
minor 2.1
year 2015
month 06
day 18
svn rev 68531
language R
version.string R version 3.2.1 (2015-06-18)
nickname World-Famous Astronaut
>
How can I solve?
Donbeo
(241 rep)
Jan 24, 2016, 05:40 PM
• Last activity: Jul 20, 2017, 07:46 AM
1
votes
1
answers
534
views
Homebrew R vs Microsoft R
I understand that math library integration is the main tweak that sets MRO apart from the CRAN R distribution, and gives it a performance advantage. I wonder if MRO (Microsoft R Open) binaries still have a performance advantage over Homebrew R, given that both Homebrew R and Microsoft R link their b...
I understand that math library integration is the main tweak that sets MRO apart from the CRAN R distribution, and gives it a performance advantage.
I wonder if MRO (Microsoft R Open) binaries still have a performance advantage over Homebrew R, given that both Homebrew R and Microsoft R link their binaries against Accelerate (MKL) math libraries in macOS.
retrography
(687 rep)
Jun 8, 2017, 01:34 PM
• Last activity: Jul 7, 2017, 10:21 AM
2
votes
0
answers
762
views
Errors in R console
I've recently upgraded to a new MBP (2015 series) and migrated my old machine via a time machine backup. Since the upgrade, I have been receiving error messages in the console of `R` at more or less random intervals. The warnings usually appear when I start the `R.app`, occasionally when I switch fr...
I've recently upgraded to a new MBP (2015 series) and migrated my old machine via a time machine backup. Since the upgrade, I have been receiving error messages in the console of
R
at more or less random intervals. The warnings usually appear when I start the R.app
, occasionally when I switch from another app (like TextMate
) back to R.app, and then even more occasionally just on random.
The messages typically look like this:
> 2016-12-12 10:35:18.696 R[2635:12228] IMKInputSession presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : *NO* NSRemoteViewController to client, NSError=Error Domain=NSCocoaErrorDomain Code=4099 "The connection from pid 0 was invalidated from this process." UserInfo={NSDebugDescription=The connection from pid 0 was invalidated from this process.}, com.apple.inputmethod.EmojiFunctionRowItem
or this:
> 2016-12-06 15:05:02.067 R[87426:4480089] IMKClient Stall detected, please Report your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_presentFunctionRowItemTextInputViewWithEndpoint:reply:) block performed very slowly (59.22 secs).
I had already posted [a question on Stackoverflow about the latter problem](https://stackoverflow.com/questions/40997541/r-warnings-imkclient-stall-detected) , but have not received any replies. I was hoping that you guys at Ask Different might have an idea of where this error comes from, and how I might be able to fix it.
altabq
(201 rep)
Dec 12, 2016, 12:18 PM
• Last activity: Apr 20, 2017, 02:31 AM
1
votes
1
answers
241
views
Terminal Crash on Macbook Air 2011, Mavericks
I've managed to wreck my **Terminal** of my Air's OS X (10.9.5) while running a sudo command (**sudo mv git /etc/paths.d**) during git installation. (Following https://stackoverflow.com/questions/4725389/how-to-get-started-with-git-on-mac) Now I receive a continuous string of errors on every new Ter...
I've managed to wreck my **Terminal** of my Air's OS X (10.9.5) while running a sudo command (**sudo mv git /etc/paths.d**) during git installation.
(Following https://stackoverflow.com/questions/4725389/how-to-get-started-with-git-on-mac)
Now I receive a continuous string of errors on every new Terminal window that I start, the first 3 lines of which are:
-bash: ???H??: command not found
-bash: command substitution: line 4: syntax error near unexpected token `('
-bash: command substitution: line 4: `:??H?u?H??HH?BH?E??H?? ]?ffff.?:?U??E???
While the Terminal commands do go through after all the errors are listed, RStudio does not start, and the error pop-up states:
"*Unexpected exception: Unmatched marking paranthesis ( or \(. The error occurred while passing the regular expression fragment: '* "
This error stays even on reinstallation of RStudio (while R works correctly)
I've tried **resetting the Terminal** by deleting ~/Library/Preferences/com.apple.Terminal.plist but the error still persists.
Really appreciate your help!
--EDIT---
echo $PATH is also gives a string of errors, starting with
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:????:O"::D?M?A??H?


Shubhayan Ghoshal
(13 rep)
Mar 11, 2017, 08:38 PM
• Last activity: Mar 12, 2017, 02:34 PM
2
votes
0
answers
62
views
How to install a second instance of R on macOS and make it launch automatically
I am using an iMac at work that I inherited from a former coworker who already installed R as well as a number of packages before leaving. My problem is that although I can install new packages from inside R-Studio, I cannot update them. I have a separate user account from my former coworker; my acc...
I am using an iMac at work that I inherited from a former coworker who already installed R as well as a number of packages before leaving. My problem is that although I can install new packages from inside R-Studio, I cannot update them. I have a separate user account from my former coworker; my account has admin privileges and I expect my former coworker's account did too. When I launch R or R-Studio, I believe it is running from a directory somewhere on their account because I ran this command to see where packages were being installed:
> Sys.getenv("R_LIBS_USER")
"~/Library/R/3.3/library"
...and found that this path does not exist under my account but does exist under the account of my former coworker. When I try to update already-installed packages, this happens:
> install.packages("shiny")
trying URL 'https://cran.rstudio.com/bin/macosx/mavericks/contrib/3.3/shiny_1.0.0.tgz '
Content type 'application/x-gzip' length 2693218 bytes (2.6 MB)
==================================================
downloaded 2.6 MB
Error in install.packages : cannot remove prior installation of package ‘shiny’
I know that if I were to re-install R and R-Studio, it would create all the necessary support directories under my account but I am reluctant to delete my co-workers instance of R because I know that they have scripts and analyses on their account that might need to be re-run at some point and I would like to preserve the environment as much as possible. So my question is: how do I install a new instance of R under my account and make it the default instance of R for my user account?
In case its relevant:
I'm using an iMac from late 2013
I'm running OSX Yosemite 10.10.5
Slavatron
(121 rep)
Feb 2, 2017, 05:49 PM
• Last activity: Feb 2, 2017, 06:13 PM
2
votes
0
answers
1067
views
R programming language breaks and must be reinstalled
Yesterday, I tried to open the R programming environment by typing "R" at the command line. I was met with the following error message: Fatal error: unable to open the base package I didn't know what to do about that, so I re-installed R. That fixed the problem, so I went on with my day. Today, I am...
Yesterday, I tried to open the R programming environment by typing "R" at the command line. I was met with the following error message:
Fatal error: unable to open the base package
I didn't know what to do about that, so I re-installed R. That fixed the problem, so I went on with my day.
Today, I am met with the same error when I type "R" at the command line. I am bamboozled!
rcorty
(233 rep)
Sep 1, 2016, 05:42 PM
• Last activity: Sep 2, 2016, 08:15 PM
6
votes
1
answers
2689
views
How to install RGtk2 on OS X 10.10.5?
I am trying to install RGtk2. I have installed GTK+ and XQuartz with Homebrew: $ brew cask install xquartz Warning: A Cask for xquartz is already installed. Add the "--force" option to force re-install. $ brew install gtk Warning: gtk+-2.24.28_2 already installed But when I try installing it I get t...
I am trying to install RGtk2. I have installed GTK+ and XQuartz with Homebrew:
$ brew cask install xquartz
Warning: A Cask for xquartz is already installed. Add the "--force" option to force re-install.
$ brew install gtk
Warning: gtk+-2.24.28_2 already installed
But when I try installing it I get the error
Rgtk.c:7:10: fatal error: 'gdk/gdkx.h' file not found
Have I missed installing some necessary package?
Niek
(421 rep)
Aug 29, 2015, 10:41 AM
• Last activity: Dec 27, 2015, 02:52 AM
2
votes
1
answers
303
views
Setting locale via launch daemon - downside to this approach?
I have the same problem as in this post [here][1] that R started in ESS / Emacs can not set the locales: R version 3.2.2 (2015-08-14) -- "Fire Safety" Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-apple-darwin14.5.0 (64-bit) R is free software and comes with ABSOLUTE...
I have the same problem as in this post here that R started in ESS / Emacs can not set the locales:
R version 3.2.2 (2015-08-14) -- "Fire Safety"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin14.5.0 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C"
2: Setting LC_COLLATE failed, using "C"
3: Setting LC_TIME failed, using "C"
4: Setting LC_MESSAGES failed, using "C"
5: Setting LC_MONETARY failed, using "C"
> > options(STERM='iESS', str.dendrogram.last="'", editor='emacsclient', show.error.locations=TRUE)
> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-apple-darwin14.5.0 (64-bit)
Running under: OS X 10.11 (El Capitan)
locale:
[1] C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.2.2 tools_3.2.2
> version
_
platform x86_64-apple-darwin14.5.0
arch x86_64
os darwin14.5.0
system x86_64, darwin14.5.0
status
major 3
minor 2.2
year 2015
month 08
day 14
svn rev 69053
language R
version.string R version 3.2.2 (2015-08-14)
nickname Fire Safety
>
This is because the locales set in the .bashrc etc are not read anymore by processes started via Spotlight / Finder.
I have already set the locales in emacs
(setq utf-translate-cjk-mode nil) ; disable CJK coding/encoding (Chinese/Japanese/Korean characters)
(set-language-environment 'utf-8)
;; (set-keyboard-coding-system 'utf-8-mac) ; For old Carbon emacs on OS X only
(setq locale-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(unless (eq system-type 'windows-nt)
(set-selection-coding-system 'utf-8))
(prefer-coding-system 'utf-8)
but this does not solve the problem.
Now the following solution has been proposed here to set the environment through launchd.
Now I am asking myself: This solution will set the locales for **all** processes started via launchd - is there a downside to using this approach?
Rainer
(1726 rep)
Oct 23, 2015, 11:00 AM
• Last activity: Oct 23, 2015, 11:20 AM
Showing page 1 of 20 total questions