昨日、Kubuntu 19.10マシンを20.04に更新しましたが、これまでのところアップグレードに満足しています。しかし、私は更新後のGNU Rインストールでの重大な問題を発見し、あなたの助けを求めています。
問題は、GNU R。でsolve()関数を使用できないことです。具体的には、この関数を使用して行列を反転しようとすると、コンソールがハングします。以下、この状況について詳しく説明します。
コードを検討する
D = matrix(
data = c(1, 2, 3, 4),
nrow = 2,
ncol = 2,
byrow = TRUE
)
solve(D)
ここに私の質問があります:
参考までに、デフォルトのaptリポジトリからインストールされたRバージョン3.6.3を使用しています。
読んでくれてありがとう、そして安全を守ってください!
pS Rに関連するWebサイトで関連情報やバグレポートが見つからなかったため、これはUbuntu固有の問題(または実際には特定のマシンの問題)だと思うので、このUbuntuコミュニティでこの質問をします。
実行可能なbashスクリプトファイルからN0rbertのコードを実行すると、セッションはsolve(D)でハングします。
kobyeongmin@odie:~/Temp$ ./r-test.sh
R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (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.
> D = matrix(
+ data = c(1, 2, 3, 4),
+ nrow = 2,
+ ncol = 2,
+ byrow = TRUE
+ )
> solve(D)
また、ここにどのRとR-バージョンの出力があります:
kobyeongmin@odie:~$ which R
/usr/bin/R
kobyeongmin@odie:~$ R --version
R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.
R-helpメーリングリストから非常に貴重なヘルプを受け取りました。これはlibopenblas0-pthreadパッケージのバグによるもので、libopenblas-pthread-devとlibopenblas0-pthreadを削除し、-libopenblasをインストールすることで解決できます。 -openmp-dev。
詳細については、2020年5月初旬のR-helpメーリングリストとdebian-scienceリストを参照してください。 https://lists.debian.org/debian-science/2020/04/msg00081.html =