I tried my best to install r-base-dev

I tried installing r-base-dev as it is advised in RStudio instructions. I did it adding this package wherever r-base was already.
pull/803/head
Pablo Bernabeu 2019-10-05 19:13:55 +01:00 zatwierdzone przez GitHub
rodzic 0d0824d5d5
commit 20b7b291eb
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -40,6 +40,8 @@ class RBuildPack(PythonBuildPack):
The `r-base` package from Ubuntu apt repositories is used to install
R itself, rather than any of the methods from https://cran.r-project.org/.
The `r-base-dev` package is installed as advised in RStudio instructions.
"""
@property
@ -177,7 +179,7 @@ class RBuildPack(PythonBuildPack):
# For R 3.4 we use the default Ubuntu package, for other versions we
# install from a different PPA
if V(self.r_version) < V("3.5"):
packages.append("r-base")
packages.append("r-base", "r-base-dev")
return super().get_packages().union(packages)
@ -245,6 +247,7 @@ class RBuildPack(PythonBuildPack):
r"""
apt-get update && \
apt-get install --yes r-base={} && \
apt-get install --yes r-base-dev={} && \
apt-get -qq purge && \
apt-get -qq clean && \
rm -rf /var/lib/apt/lists/*