2

R スタジオにモザイク パッケージをインストールしようとすると、次のメッセージが表示されます。

> install.packages('mosaic', dependencies = TRUE)
Warning in install.packages :
  dependencies ‘latticeExtra’, ‘fastR’ are not available
also installing the dependency ‘rgl’


  There are binary versions available but the source versions are later:
         binary   source needs_compilation
rgl    0.100.50 0.100.54              TRUE
mosaic    1.5.0    1.6.0             FALSE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) No
trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/rgl_0.100.50.tgz'
Content type 'application/x-gzip' length 4709273 bytes (4.5 MB)
==================================================
downloaded 4.5 MB


The downloaded binary packages are in
    /var/folders/c8/lyjrvw_x18q2trr07z2s7m8w0000gn/T//RtmpOfzCf6/downloaded_packages
installing the source package ‘mosaic’

trying URL 'https://cran.rstudio.com/src/contrib/mosaic_1.6.0.tar.gz'
Content type 'application/x-gzip' length 12425406 bytes (11.8 MB)
==================================================
downloaded 11.8 MB

ERROR: dependency ‘latticeExtra’ is not available for package ‘mosaic’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/mosaic’
Warning in install.packages :
  installation of package ‘mosaic’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/c8/lyjrvw_x18q2trr07z2s7m8w0000gn/T/RtmpOfzCf6/downloaded_packages’

どうすればこれを回避できますか? 次の行で「はい」と「いいえ」の両方を言ってみました:

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) No

そして、両方ともエラーが発生します。はいと答えてrglをインストールしようとすると、次のメッセージが繰り返し表示されます。

You have not agreed to the Xcode license agreements, please run 'sudo xcodebuild -license' from within a Terminal window to review and agree to the Xcode license agreements.

ターミナル ウィンドウで実行するxcodebuild -licenseと、パスワードの入力を求められますが、パスワード スロットに何も入力できず、インストールを続行できません。

モザイク パッケージをインストールする他の方法はありますか?

4

2 に答える 2