Skip to content

Commit

Permalink
R-Package Makefile (apache#14068)
Browse files Browse the repository at this point in the history
* rpkg Makefile

* rpkg makefile fix
  • Loading branch information
jeremiedb authored and vdantu committed Mar 31, 2019
1 parent 2e42d6a commit 33fd187
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -607,11 +607,7 @@ rpkg:
fi

mkdir -p R-package/inst/include
cp -rf include/* R-package/inst/include
rm R-package/inst/include/dmlc
rm R-package/inst/include/nnvm
cp -rf 3rdparty/dmlc-core/include/* R-package/inst/include/
cp -rf 3rdparty/tvm/nnvm/include/* R-package/inst/include
cp -rl include/* R-package/inst/include
Rscript -e "if(!require(devtools)){install.packages('devtools', repo = 'https://cloud.r-project.org/')}"
Rscript -e "if(!require(roxygen2)||packageVersion('roxygen2') < '6.1.1'){install.packages('roxygen2', repo = 'https://cloud.r-project.org/')}"
Rscript -e "library(devtools); library(methods); options(repos=c(CRAN='https://cloud.r-project.org/')); install_deps(pkg='R-package', dependencies = TRUE)"
Expand All @@ -620,7 +616,7 @@ rpkg:
R CMD INSTALL R-package
Rscript -e "require(mxnet); mxnet:::mxnet.export('R-package'); warnings()"
rm R-package/NAMESPACE
Rscript -e "devtools::document('R-package'); warnings()"
Rscript -e "devtools::document('R-package');warnings()"
R CMD INSTALL R-package

rpkgtest:
Expand Down

0 comments on commit 33fd187

Please sign in to comment.