Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Support R-package with cmake build and fix installation instructions #17228

Merged
merged 9 commits into from
Jan 14, 2020
Prev Previous commit
Next Next commit
Clarify creation of personal R library
  • Loading branch information
leezu committed Jan 14, 2020
commit 1925543096117b68ada50252e140ed5dfc73ed49
17 changes: 11 additions & 6 deletions docs/static_site/src/pages/get_started/ubuntu_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,26 +375,31 @@ source root directory to build the MXNet Perl package:

**Build the MXNet core shared library**

**Step 1** Install R, cran-devtools and roxygen2
**Step 1** Install R, cran-devtools and dependencies

If you are on Ubuntu 19.04 or higher:
To install R and the devtools, run

```bash
sudo apt-get update
sudo apt-get install -y r-base-core r-cran-devtools r-cran-roxygen2
sudo apt-get install -y r-base-core r-cran-devtools libcairo2-dev libxml2-dev
```

Otherwise
`libxml2-dev` is required for the `roxygen2` dependency and `libcairo2-dev` is
required for the suggested `imager` dependency.

To generate documentation, it is also required to install `roxygen2`.

```bash
sudo apt-get update
sudo apt-get install -y r-base-core r-cran-devtools
R
> install.packages("roxygen2")
> Would you like to use a personal library instead? (y/n) y
> Would you like to create a personal library ... to install packages into? (y/n) y
```

Note: To successfully complete the next step, you need a personal R library. If
you were able to run `install.packages("roxygen2")` above, you either had
already, or you have successfully created a personal library just now.

**Step 2** Make and install the MXNet-R bindings.

```bash
Expand Down