Skip to content

Conversation

@jagadeesanas2
Copy link
Contributor

What changes were proposed in this pull request?

To build R docs (which are built when R tests are run), users need to install pandoc and rmarkdown. This was done for Jenkins in SPARK-17420

… pandoc]

@SparkQA
Copy link

SparkQA commented Sep 30, 2016

Test build #66154 has finished for PR 15309 at commit ac6a8c4.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@felixcheung
Copy link
Member

LGTM

@srowen
Copy link
Member

srowen commented Sep 30, 2016

These should be rolled into the command above right?

docs/README.md Outdated
@@ -21,6 +21,8 @@ installed. Also install the following libraries:
# Following is needed only for generating API docs
$ sudo pip install sphinx
$ sudo Rscript -e 'install.packages(c("knitr", "devtools", "roxygen2", "testthat"), repos="http://cran.stat.ucla.edu/")'
$ sudo Rscript -e 'install.packages(c("rmarkdown"), repos="http://cran.stat.ucla.edu/")'
$ sudo pip install pandoc pandoc-citeproc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be

sudo apt-get install pandoc pandoc-citeproc

on Ubuntu

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(And I say this without knowing much about it --) Isn't this a Python package? would it be preferable to manage via pip if so, since that's cross-platform I think? does the Ubuntu package just install the same thing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@felixcheung i agree, if we are installing manually on Ubuntu/Debain we need to install using below command
sudo apt-get install pandoc pandoc-citeproc

similarly for
Fedora/Red Hat: sudo yum install pandoc
Arch: sudo pacman -S pandoc
Mac OS X with Homebrew: brew install pandoc pandoc-citeproc Caskroom/cask/mactex
Machine with Haskell: cabal-install pandoc

@srowen
TTBOMK, as it's python package, it can be manage via pip also
https://pypi.python.org/pypi/pypandoc

Copy link
Member

@felixcheung felixcheung Oct 2, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pandoc itself is not a python package but it appears the python package pypandoc manages it.
"pypandoc already includes pandoc (and pandoc_citeproc) in it’s prebuilt package."
so maybe we should sudo pip install pypandoc instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 on just keeping sudo pip install pypandoc

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with that, but, now we still have two additional commands here, when they can just be packages installed by the commands above. That was my earlier point.

@SparkQA
Copy link

SparkQA commented Oct 2, 2016

Test build #66240 has finished for PR 15309 at commit 2870391.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@felixcheung
Copy link
Member

felixcheung commented Oct 2, 2016 via email

@jagadeesanas2
Copy link
Contributor Author

above means, your suggesting like this..?
sudo pip install sphinx pypandoc

@SparkQA
Copy link

SparkQA commented Oct 3, 2016

Test build #66250 has finished for PR 15309 at commit 5f251a2.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Oct 3, 2016

Merged to master/2.0

@asfgit asfgit closed this in a27033c Oct 3, 2016
asfgit pushed a commit that referenced this pull request Oct 3, 2016
## What changes were proposed in this pull request?

To build R docs (which are built when R tests are run), users need to install pandoc and rmarkdown. This was done for Jenkins in ~~[SPARK-17420](https://issues.apache.org/jira/browse/SPARK-17420)~~

… pandoc]

Author: Jagadeesan <as2@us.ibm.com>

Closes #15309 from jagadeesanas2/SPARK-17736.

(cherry picked from commit a27033c)
Signed-off-by: Sean Owen <sowen@cloudera.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants