You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/10/30 12:47:36 UTC

[GitHub] shadogray commented on a change in pull request #12998: remove legacy installation of Roxygen2 5.0 and add R-specific clean target (#12993)

shadogray commented on a change in pull request #12998: remove legacy installation of Roxygen2 5.0 and add R-specific clean target (#12993)
URL: https://github.com/apache/incubator-mxnet/pull/12998#discussion_r229290833
 
 

 ##########
 File path: Makefile
 ##########
 @@ -584,14 +584,15 @@ rpkg:
 	cp -rf 3rdparty/tvm/nnvm/include/* R-package/inst/include
 	Rscript -e "if(!require(devtools)){install.packages('devtools', 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)"
-	echo "import(Rcpp)" > R-package/NAMESPACE
-	echo "import(methods)" >> R-package/NAMESPACE
+	cp R-package/dummy.NAMESPACE R-package/NAMESPACE
 
 Review comment:
   the NAMESPACE defines the exported symbols of the package. It is read on loading of package by R runtime.
   To clarify the move to "dummy.NAMESPACE": the original code generated a very simple NAMESPACE (as you see in the removed lines) by pasting those 2 lines, which my have sufficed with legacy versions.
   Modern build tools also check the complete package+install cycle and then detects missing symbols, so the intermediate build fails, this build is necessary to setup the infrastructure to generate the final NAMESPACE file.
   This is the reason, why the CMD INSTALL is run twice, so my understanding.
   Only the NAMESPACE of the second CMD INSTALL is used by final package.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services