Skip to content

Instantly share code, notes, and snippets.

@nrrb
Last active January 8, 2019 19:15
Show Gist options
  • Save nrrb/a11b39b6f50d35d47f43301793d0a4ac to your computer and use it in GitHub Desktop.
Save nrrb/a11b39b6f50d35d47f43301793d0a4ac to your computer and use it in GitHub Desktop.
FAQs related to installing R, RStudio, TinyTeX at Kellogg

FAQs for Installing R, RStudio, and TinyTeX

@ Kellogg School of Management

1. /usr/local/bin not writable

I see this error when I install TinyTeX:

add_link_dir_dir: destination /usr/local/bin not writable, no links from /Users/hagen/Library/TinyTeX/bin/x86_64-darwin. add of symlinks had 1 error(s), see messages above. add of symlinks had 1 error(s), see messages above. tlmgr: An error has occurred. See above messages. Exiting.

This is an issue on some Macs, where that folder /usr/local/bin is not writable by your user account for some reason. Here's how to fix it:

  1. You should have tab called "Terminal" next to your Console tab in the lower right corner of your RStudio window. Click on this Terminal tab.
  2. Paste in the following command and press Enter (if typing, be mindful of the backticks around "whoami" which can be found on the top left key of the keyboard):
sudo chown -R `whoami`:admin /usr/local/bin
  1. When it asks for your password, type in the password you use to get into the computer (it may be your Apple ID password). The password prompt will not show any placeholder characters/asterisks, so you'll have to type on faith.
  2. Press Enter to finish.

When successful, it will say nothing and show the Terminal prompt again.

2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment