我試圖安裝survminer包但我得到一個非零退出狀態。它可能是由於jpeg包是一個先決條件,但這也不能獨立在安裝。
安裝。包(“survminer回購= " https://cran.microsoft.com/snapshot/2022-06-24/ ")
由此產生的錯誤如下:
*安裝*源*包“SparseM”……* *包SparseM成功打開和MD5總結檢查* *使用了安裝* *填詞gfortran -fno-optimize-sibling-calls - fpic - g - 02 -fdebug-prefix-map = /構建/ r-base-i2PIHO / r-base-4.1.2 =。-fstack-protector-strong - c bckslv。f - o bckslv。o gfortran -fno-optimize-sibling-calls - fpic - g - 02 -fdebug-prefix-map = /構建/ r-base-i2PIHO / r-base-4.1.2 =。-fstack-protector-strong - c膽固醇。f - o膽固醇。o gfortran -fno-optimize-sibling-calls - fpic - g - 02 -fdebug-prefix-map = /構建/ r-base-i2PIHO / r-base-4.1.2 =。-fstack-protector-strong - c chol2csr。f - o chol2csr。o gfortran -fno-optimize-sibling-calls - fpic - g - 02 -fdebug-prefix-map = /構建/ r-base-i2PIHO / r-base-4.1.2 =。-fstack-protector-strong - c柯列斯基。f - o柯列斯基。柯列斯基。f: 2948:72: ..................... Warning in utils::install.packages(pkgs, ...) : installation of package ‘jpeg’ had non-zero exit status Warning in utils::install.packages(pkgs, ...) : installation of package ‘gridtext’ had non-zero exit status Warning in utils::install.packages(pkgs, ...) : installation of package ‘ggtext’ had non-zero exit status Warning in utils::install.packages(pkgs, ...) : installation of package ‘survminer’ had non-zero exit status The downloaded source packages are in ‘/tmp/RtmpugpJqZ/downloaded_packages’
@Ross漢密爾頓按照給定的順序,請遵循以下步驟
% python dbutils.fs.put (“/ tmp /測試/ init_script。sh”、“”“# !/bin/bash apt-get更新apt-get - y安裝libjpeg-dev”“”)
% r install.packages (“survminer”)