Недавно мне пришлось обновить R с 3.4.4 до 3.5 для установки пакетов bioconductor.Для этого я следовал инструкциям по этой ссылке .
Но теперь у меня проблема в том, что r studio не работает для этой проблемы:
R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is
a custom build of R, was it built with the --enable-R-shlib option?
Для этогопричина, по которой я попытался переустановить R 3.4.4 с помощью команды:
sudo apt-get install r-base
Но он возвращает мне эту ошибку:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-base : Depends: r-recommended (= 3.5.1-2xenial) but it is not
going to be installed
E: Unable to correct problems, you have held broken packages.
Кто-нибудь знает, как полностью удалить R (3.5) иустановить заново версию 3.4?
Спасибо всем.
Редактировать: R работает в командной строке с версией 3.5, и я не могу установить другие пакеты, такие как:
$ sudo apt-get install libgdal-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Следующая информация может помочь разрешить ситуацию:
Следующие пакеты имеют неудовлетворенные зависимости:
libgdal-dev : Depends: libarmadillo-dev but it is not going to be installed
Depends: libdap-dev but it is not going to be installed
Depends: libgeotiff-dev but it is not going to be installed
Depends: libgif-dev but it is not going to be installed
Depends: libhdf4-alt-dev but it is not going to be installed
Depends: libhdf5-dev but it is not going to be installed
Depends: libjpeg-dev
Depends: libmysqlclient-dev but it is not going to be installed
Depends: libnetcdf-dev but it is not going to be installed
Depends: libpoppler-private-dev but it is not going to be installed
Depends: libpq-dev but it is not going to be installed
Depends: libtiff-dev
Depends: libxml2-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.