Complete beginner here - hope someone can help.I needed to use a function in R called pandoc.table and discovered RStudio (Version 1.2.1335) did not contain any pandoc packages so I found some suggestions online and installed pandoc-2.7.3-macOS.pkg.No luck there - so I tried to install pandoc by using this command in the terminal windowbrew install pandocBelow is the code towards the end of the installation:[...]==> Downloading from https://akamai.bintray.com/bb/bb4246119de8f6f8769d4a7baf3127 ed66df0edd69bb84c92b1bdeaa9006 4caf?__gda__=exp=1561867408~ hmac=e393ab0dbfd
############################################################ ############ 100.0%
Error: No such file or directory @ dir_chdir - /usr/local/Cellar
Warning: Bottle installation failed: building from source.
==> Installing dependencies for pandoc: ghc and cabal-install
==> Installing pandoc dependency: ghc
==> Downloading https://homebrew.bintray.com/bottles/ghc-8.6.5.mojave. bottle.tar.gz
==> Downloading from https://akamai.bintray.com/ab/ab7cfe45159057538fcde888c14ccf 19b0154ac6e0e2d9bd92727c5a0b77 34d5?__gda__=exp=1561867415~ hmac=e0e537eaad1
GL-MBP:~ GL$ brew install pandoc-citeproc
==> Installing dependencies for pandoc-citeproc: pandoc
==> Installing pandoc-citeproc dependency: pandoc
==> Downloading https://homebrew.bintray.com/bottles/pandoc-2.7.3.mojave. bottle.tar.gz
Already downloaded: /Users/GL/Library/Caches/Homebrew/downloads/ e5c410b008ebaff5a8464e18ca9a49 a0c3cd0aabeafe24e732adf312d2a3 1f6b--pandoc-2.7.3.mojave. bottle.tar.gz
Error: No such file or directory @ dir_chdir - /usr/local/Cellar
Warning: Bottle installation failed: building from source.
==> Installing dependencies for pandoc: ghc and cabal-install
==> Installing pandoc dependency: ghc
==> Downloading https://homebrew.bintray.com/bottles/ghc-8.6.5.mojave. bottle.tar.gz
==> Downloading from https://akamai.bintray.com/ab/ab7cfe45159057538fcde888c14ccf 19b0154ac6e0e2d9bd92727c5a0b77 34d5?__gda__=exp=1561867750~ hmac=bc2610080cc
############################################################ ############ 100.0%
Error: No such file or directory @ dir_chdir - /usr/local/Cellar
Warning: Bottle installation failed: building from source.
==> Installing dependencies for ghc: gdbm, openssl, readline, sqlite, xz, python and sphinx-doc
==> Installing ghc dependency: gdbm
==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.18.1.mojave. bottle.1.tar.gz
############################################################ ############ 100.0%
Error: No such file or directory @ dir_chdir - /usr/local/Cellar
Warning: Bottle installation failed: building from source.
==> Downloading https://ftp.gnu.org/gnu/gdbm/gdbm-1.18.1.tar.gz
############################################################ ############ 100.0%
Error: An exception occurred within a child process:
Errno::EPERM: Operation not permitted @ dir_s_mkdir - /usr/local/Cellar
GL-MBP:~ GL$ brew updateAlready up-to-date.============================================================ ========================= I am not sure what type of problem I have. I tried to find information online but couldn't find any helpful posts or documentation.If anyone able to help could kindly spare the time to write back that would be wonderful.Thanks a millionGaby