Matt,

First option: try using the latest R from https://mac.R-project.org since the 
latest releases include qpdf in the distribution so there is no need to install 
it externally.

Second option: use R instead of RStudio since the latter is just a complicated 
way to call "R CMD check" so calling it directly should work.

Third option: ask RStudio support how to get it to work since that requires 
manipulation of (exported) PATH inside RStudio.

Cheers,
Simon


> On Dec 20, 2021, at 3:16 PM, Matthew Heun via R-SIG-Mac 
> <r-sig-mac@r-project.org> wrote:
> 
> All:
> 
> I'm hoping this list is the right place to post this question.  If not, feel 
> free to direct me elsewhere.  I also looked for a search option for this list 
> but couldn't find one.  Sorry!
> 
> I'm on a new M1 Pro MacBook Pro.  (Yay!)  I installed the arm64 version of R 
> and the latest version of RStudio.  I'm now setting up for package 
> development with RStudio.  When checking any of my packages in RStudio 
> (Build|Check Package), I see:
> 
> 
> checking data for ASCII and uncompressed saves ... OK
>   WARNING
>  ‘qpdf’ is needed for checks on size reduction of PDFs
> 
> 
> This warning does not appear on my Intel Mac.
> 
> 
> I attempted the following to try to eliminate this warning:
> 
> * Installed qpdf (from https://mac.r-project.org/libs-arm64/) into 
> /opt/R/arm64/bin. 
> 
> * As suggested at https://mac.r-project.org/libs-arm64/, I added 
> /opt/R/arm64/bin to PATH such that I see the following in the macOS Terminal 
> app:
> 
> mkh2@Mac91836 ~ % echo $PATH
> /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Library/Apple/usr/bin:/opt/R/arm64/bin
> 
> and
> 
> mkh2@Mac91836 ~ % which qpdf
> /opt/R/arm64/bin/qpdf
> 
> 
> However, the problem persists.
> 
> 
> Is there something else I should be doing to eliminate this warning?
> 
> 
> Any suggestions will be welcome.
> 
> Thanks,
> 
> Matt
> 
> 
> P.S.  Many, many thanks to everyone who keeps R for Mac viable!  Your 
> contributions are incredibly valuable.
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to