You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by felixcheung <gi...@git.apache.org> on 2016/11/06 18:35:19 UTC

[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] update vignettes for CRAN r...

GitHub user felixcheung opened a pull request:

    https://github.com/apache/spark/pull/15790

    [SPARK-18264][SPARKR] update vignettes for CRAN release build and add info on release

    ## What changes were proposed in this pull request?
    
    Changes to DESCRIPTION to build vignettes.
    Changes the metadata for vignettes to generate the recommended format.
    Unfortunately it looks not as nice as before
    (before - left, after - right)
    ![image](https://cloud.githubusercontent.com/assets/8969467/20040433/56e7ee6c-a40c-11e6-80ce-8827fac4f048.png)
    ![image](https://cloud.githubusercontent.com/assets/8969467/20040435/5ab3a702-a40c-11e6-9605-2534ae520d9f.png)
    
    Also add information on how to run build/release to CRAN later.
    
    ## How was this patch tested?
    
    manually, unit tests
    
    @shivaram 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/felixcheung/spark rpkgvignettes

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/15790.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #15790
    
----
commit d51b04b4d2eb4000563d99250970ae9b3653952c
Author: Felix Cheung <fe...@hotmail.com>
Date:   2016-11-06T18:16:20Z

    update vignettes for release build and add info on release

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by shaneknapp <gi...@git.apache.org>.
Github user shaneknapp commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    test this please


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] build vignettes with packag...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15790#discussion_r87509314
  
    --- Diff: R/check-cran.sh ---
    @@ -36,11 +36,27 @@ if [ ! -z "$R_HOME" ]
     fi
     echo "USING R_HOME = $R_HOME"
     
    -# Build the latest docs
    -$FWDIR/create-docs.sh
    +# Build the latest docs, but not vignettes, which is built with the package next
    +NO_VIGNETTES=1 $FWDIR/create-docs.sh
     
    -# Build a zip file containing the source package
    -"$R_SCRIPT_PATH/"R CMD build $FWDIR/pkg
    +# Build source package with vignettes
    +SPARK_HOME="$(cd "`dirname "$0"`"/..; pwd)"
    --- End diff --
    
    Yeah I think the problem might be related to how you invoke it. If you invoke the script with an absolute path say `/Users/shivaram/spark-1/R/check-cran.sh` then the existing code works fine. If I however use a relative path -- for example `./R/check-cran.sh` while I am in `/Users/shivaram/spark-1` then it doesn't work. 
    
    I think moving it to the top of the file is probably a good idea because the `$0` is relative to where the script started from and when we do `pushd $FWDIR` the working directory changes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    **[Test build #68500 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68500/consoleFull)** for PR 15790 at commit [`1681005`](https://github.com/apache/spark/commit/1681005b6fe237d931fcea3daeaed3cb8c6087a1).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] update vignettes for CRAN release ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    **[Test build #68249 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68249/consoleFull)** for PR 15790 at commit [`d51b04b`](https://github.com/apache/spark/commit/d51b04b4d2eb4000563d99250970ae9b3653952c).
     * This patch **fails SparkR unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    **[Test build #68348 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68348/consoleFull)** for PR 15790 at commit [`4d6c919`](https://github.com/apache/spark/commit/4d6c919b8517cb30430677cfd5efa64da873a234).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    I think https://github.com/apache/spark/blob/master/dev/make-distribution.sh should change too but I'm not 100% how the R package is built there.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] update vignettes for CRAN release ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    **[Test build #68307 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68307/consoleFull)** for PR 15790 at commit [`4d6c919`](https://github.com/apache/spark/commit/4d6c919b8517cb30430677cfd5efa64da873a234).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] update vignettes for CRAN release ...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Can you open a Spark JIRA for installing `qpdf` and cc @shaneknapp on it ? We can install it on the Jenkins machines.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    **[Test build #68352 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68352/consoleFull)** for PR 15790 at commit [`9f24e3f`](https://github.com/apache/spark/commit/9f24e3f89595d469d279093a924d13898de0517d).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] build vignettes with packag...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15790#discussion_r87504850
  
    --- Diff: R/check-cran.sh ---
    @@ -36,11 +36,27 @@ if [ ! -z "$R_HOME" ]
     fi
     echo "USING R_HOME = $R_HOME"
     
    -# Build the latest docs
    -$FWDIR/create-docs.sh
    +# Build the latest docs, but not vignettes, which is built with the package next
    +NO_VIGNETTES=1 $FWDIR/create-docs.sh
     
    -# Build a zip file containing the source package
    -"$R_SCRIPT_PATH/"R CMD build $FWDIR/pkg
    +# Build source package with vignettes
    +SPARK_HOME="$(cd "`dirname "$0"`"/..; pwd)"
    --- End diff --
    
    So I think this needs to be at the top of the file - The current working directory is probably changed in the middle by `create-docs.sh` or the `pushd $FWDIR`  ? 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] build vignettes with packag...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15790#discussion_r87510242
  
    --- Diff: R/check-cran.sh ---
    @@ -36,11 +36,27 @@ if [ ! -z "$R_HOME" ]
     fi
     echo "USING R_HOME = $R_HOME"
     
    -# Build the latest docs
    -$FWDIR/create-docs.sh
    +# Build the latest docs, but not vignettes, which is built with the package next
    +NO_VIGNETTES=1 $FWDIR/create-docs.sh
     
    -# Build a zip file containing the source package
    -"$R_SCRIPT_PATH/"R CMD build $FWDIR/pkg
    +# Build source package with vignettes
    +SPARK_HOME="$(cd "`dirname "$0"`"/..; pwd)"
    --- End diff --
    
    I changed this up a bit, not sure if it helps but both works on my setup


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by shaneknapp <gi...@git.apache.org>.
Github user shaneknapp commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    ok, qpdf is installed per the jira.   no environment variables set up yet though.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Sure - Sounds good. LGTM. Merging this to master and branch-2.1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] update vignettes for CRAN release ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    **[Test build #68307 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68307/consoleFull)** for PR 15790 at commit [`4d6c919`](https://github.com/apache/spark/commit/4d6c919b8517cb30430677cfd5efa64da873a234).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] build vignettes with packag...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15790#discussion_r87510033
  
    --- Diff: R/create-docs.sh ---
    @@ -52,21 +52,28 @@ Rscript -e 'libDir <- "../../lib"; library(SparkR, lib.loc=libDir); library(knit
     
     popd
     
    -# Find Spark jars.
    -if [ -f "${SPARK_HOME}/RELEASE" ]; then
    -  SPARK_JARS_DIR="${SPARK_HOME}/jars"
    +if [ -n "$NO_VIGNETTES" ]
    +then
    +  echo "Skipping R vignettes"
     else
    -  SPARK_JARS_DIR="${SPARK_HOME}/assembly/target/scala-$SPARK_SCALA_VERSION/jars"
    -fi
     
    -# Only create vignettes if Spark JARs exist
    -if [ -d "$SPARK_JARS_DIR" ]; then
    -  # render creates SparkR vignettes
    -  Rscript -e 'library(rmarkdown); paths <- .libPaths(); .libPaths(c("lib", paths)); Sys.setenv(SPARK_HOME=tools::file_path_as_absolute("..")); render("pkg/vignettes/sparkr-vignettes.Rmd"); .libPaths(paths)'
    +  # Find Spark jars.
    --- End diff --
    
    I changed this up a bit, not sure if it helps but both works on my setup.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] build vignettes with packag...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15790#discussion_r87500577
  
    --- Diff: R/check-cran.sh ---
    @@ -36,11 +36,27 @@ if [ ! -z "$R_HOME" ]
     fi
     echo "USING R_HOME = $R_HOME"
     
    -# Build the latest docs
    -$FWDIR/create-docs.sh
    +# Build the latest docs, but not vignettes, which is built with the package next
    +NO_VIGNETTES=1 $FWDIR/create-docs.sh
     
    -# Build a zip file containing the source package
    -"$R_SCRIPT_PATH/"R CMD build $FWDIR/pkg
    +# Build source package with vignettes
    +SPARK_HOME="$(cd "`dirname "$0"`"/..; pwd)"
    --- End diff --
    
    that's odd, it works in my environment.
    do you happen to have check-cran.sh under a subdirectory of R?
    
    this is the code:
    ```
    SPARK_HOME="$(cd "`dirname "$0"`"/..; pwd)"
    . "${SPARK_HOME}"/bin/load-spark-env.sh
    ```
    
    so for /opt/spark/R/check-cran.sh, it should look for /opt/spark/bin/load-spark-env.sh
    and SPARK_HOME should be /opt/spark


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/68348/
    Test FAILed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    ping @shivaram 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] build vignettes with packag...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15790#discussion_r87507839
  
    --- Diff: R/run-tests.sh ---
    @@ -48,6 +48,7 @@ if [[ $FAILED != 0 || $NUM_TEST_WARNING != 0 ]]; then
     else
         # We have 2 existing NOTEs for new maintainer, attach()
         # We have one more NOTE in Jenkins due to "No repository set"
    +    # We have one warning on \u2018qpdf\u2019 is needed for checks on size reduction of PDFs
    --- End diff --
    
    Nit: This comment can be removed now ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] build vignettes with packag...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/15790


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/68498/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] build vignettes with packag...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15790#discussion_r87048260
  
    --- Diff: R/run-tests.sh ---
    @@ -48,7 +48,8 @@ if [[ $FAILED != 0 || $NUM_TEST_WARNING != 0 ]]; then
     else
         # We have 2 existing NOTEs for new maintainer, attach()
         # We have one more NOTE in Jenkins due to "No repository set"
    -    if [[ $NUM_CRAN_WARNING != 0 || $NUM_CRAN_ERROR != 0 || $NUM_CRAN_NOTES -gt 3 ]]; then
    +    # We have one warning on \u2018qpdf\u2019 is needed for checks on size reduction of PDFs
    +    if [[ $NUM_CRAN_WARNING != 1 || $NUM_CRAN_ERROR != 0 || $NUM_CRAN_NOTES -gt 3 ]]; then
    --- End diff --
    
    I think we can remove this now. This was the cause for the latest test failure ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] update vignettes for CRAN release ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    **[Test build #68249 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68249/consoleFull)** for PR 15790 at commit [`d51b04b`](https://github.com/apache/spark/commit/d51b04b4d2eb4000563d99250970ae9b3653952c).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] update vignettes for CRAN release ...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    This is great @felixcheung - Taking a closer look now


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] update vignettes for CRAN release ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/68249/
    Test FAILed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    So one proposal I was thinking of is to just check in a built version of the vignette in to the source tree. That way the release packaging wouldn't need to change. The only thing to keep in mind is that whenever we update the vignette we will need to rebuild it. Thoughts ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Merged build finished. Test FAILed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Tested that more, I think the vignettes works only with installed package (or installed built package)
    
    ```
    R CMD INSTALL SparkR_2.1.0.tar.gz
    ```
    
    and then
    ```
    library(SparkR)
    vignette("sparkr-vignettes", package="SparkR")
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] build vignettes with packag...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15790#discussion_r87507979
  
    --- Diff: R/create-docs.sh ---
    @@ -52,21 +52,28 @@ Rscript -e 'libDir <- "../../lib"; library(SparkR, lib.loc=libDir); library(knit
     
     popd
     
    -# Find Spark jars.
    -if [ -f "${SPARK_HOME}/RELEASE" ]; then
    -  SPARK_JARS_DIR="${SPARK_HOME}/jars"
    +if [ -n "$NO_VIGNETTES" ]
    +then
    +  echo "Skipping R vignettes"
     else
    -  SPARK_JARS_DIR="${SPARK_HOME}/assembly/target/scala-$SPARK_SCALA_VERSION/jars"
    -fi
     
    -# Only create vignettes if Spark JARs exist
    -if [ -d "$SPARK_JARS_DIR" ]; then
    -  # render creates SparkR vignettes
    -  Rscript -e 'library(rmarkdown); paths <- .libPaths(); .libPaths(c("lib", paths)); Sys.setenv(SPARK_HOME=tools::file_path_as_absolute("..")); render("pkg/vignettes/sparkr-vignettes.Rmd"); .libPaths(paths)'
    +  # Find Spark jars.
    --- End diff --
    
    This code is now duplicated in two files. Do you think we should just create a `build-vignette.sh` and call it in two places ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] update vignettes for CRAN release ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/68307/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] update vignettes for CRAN release ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Merged build finished. Test FAILed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    **[Test build #68497 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68497/consoleFull)** for PR 15790 at commit [`323609e`](https://github.com/apache/spark/commit/323609e43ab11ce4e5f62a13942b3c0cc3cbc85f).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] build vignettes with packag...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15790#discussion_r87509955
  
    --- Diff: R/create-docs.sh ---
    @@ -52,21 +52,28 @@ Rscript -e 'libDir <- "../../lib"; library(SparkR, lib.loc=libDir); library(knit
     
     popd
     
    -# Find Spark jars.
    -if [ -f "${SPARK_HOME}/RELEASE" ]; then
    -  SPARK_JARS_DIR="${SPARK_HOME}/jars"
    +if [ -n "$NO_VIGNETTES" ]
    +then
    +  echo "Skipping R vignettes"
     else
    -  SPARK_JARS_DIR="${SPARK_HOME}/assembly/target/scala-$SPARK_SCALA_VERSION/jars"
    -fi
     
    -# Only create vignettes if Spark JARs exist
    -if [ -d "$SPARK_JARS_DIR" ]; then
    -  # render creates SparkR vignettes
    -  Rscript -e 'library(rmarkdown); paths <- .libPaths(); .libPaths(c("lib", paths)); Sys.setenv(SPARK_HOME=tools::file_path_as_absolute("..")); render("pkg/vignettes/sparkr-vignettes.Rmd"); .libPaths(paths)'
    +  # Find Spark jars.
    --- End diff --
    
    right, I thought about that. I think there's value in knitting html and vignettes in create-doc.sh, it is a bit duplicated to have vignettes in 2 places but 
    
    in create-doc.sh
    ```
    ...
    render("pkg/vignettes/sparkr-vignettes.Rmd");
    ```
    
    in check-cran.sh
    ```
      SPARK_HOME="${SPARK_HOME}" "$R_SCRIPT_PATH/"R CMD build $FWDIR/pkg
    ```
    
    in the latter it is building the full package along with vignettes, so the actual command and behavior isn't exactly the same.
    
    Perhaps we should just take vignettes build out of create-doc.sh?



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    **[Test build #68498 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68498/consoleFull)** for PR 15790 at commit [`4d34bbe`](https://github.com/apache/spark/commit/4d34bbee5ab92a3bd796de3d07a71e8726b0caa3).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/68497/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] build vignettes with packag...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15790#discussion_r87499208
  
    --- Diff: R/pkg/vignettes/sparkr-vignettes.Rmd ---
    @@ -1,12 +1,13 @@
     ---
     title: "SparkR - Practical Guide"
     output:
    -  html_document:
    -    theme: united
    +  rmarkdown::html_vignette:
         toc: true
         toc_depth: 4
    -    toc_float: true
    -    highlight: textmate
    +vignette: >
    --- End diff --
    
    right, it seems to have a theme already and is complaining about theme already defined


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] build vignettes with packag...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15790#discussion_r87448886
  
    --- Diff: R/pkg/vignettes/sparkr-vignettes.Rmd ---
    @@ -1,12 +1,13 @@
     ---
     title: "SparkR - Practical Guide"
     output:
    -  html_document:
    -    theme: united
    +  rmarkdown::html_vignette:
         toc: true
         toc_depth: 4
    -    toc_float: true
    -    highlight: textmate
    +vignette: >
    --- End diff --
    
    So I think the `theme` was the one giving us the nice looking HTML . Is that not supported with `rmarkdown::html_vignette` ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    **[Test build #68498 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68498/consoleFull)** for PR 15790 at commit [`4d34bbe`](https://github.com/apache/spark/commit/4d34bbee5ab92a3bd796de3d07a71e8726b0caa3).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] build vignettes with packag...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15790#discussion_r87510152
  
    --- Diff: R/create-docs.sh ---
    @@ -52,21 +52,28 @@ Rscript -e 'libDir <- "../../lib"; library(SparkR, lib.loc=libDir); library(knit
     
     popd
     
    -# Find Spark jars.
    -if [ -f "${SPARK_HOME}/RELEASE" ]; then
    -  SPARK_JARS_DIR="${SPARK_HOME}/jars"
    +if [ -n "$NO_VIGNETTES" ]
    +then
    +  echo "Skipping R vignettes"
     else
    -  SPARK_JARS_DIR="${SPARK_HOME}/assembly/target/scala-$SPARK_SCALA_VERSION/jars"
    -fi
     
    -# Only create vignettes if Spark JARs exist
    -if [ -d "$SPARK_JARS_DIR" ]; then
    -  # render creates SparkR vignettes
    -  Rscript -e 'library(rmarkdown); paths <- .libPaths(); .libPaths(c("lib", paths)); Sys.setenv(SPARK_HOME=tools::file_path_as_absolute("..")); render("pkg/vignettes/sparkr-vignettes.Rmd"); .libPaths(paths)'
    +  # Find Spark jars.
    --- End diff --
    
    I changed this up a bit, not sure if it helps but both works on my setup


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    **[Test build #68497 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68497/consoleFull)** for PR 15790 at commit [`323609e`](https://github.com/apache/spark/commit/323609e43ab11ce4e5f62a13942b3c0cc3cbc85f).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] update vignettes for CRAN release ...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    interesting. jenkins failed because it is building vignettes again right after it is built correctly, and the second time it didn't have the Spark jar (so trying to download it as per install.spark)
    
    I'll try to track down where it is doing that. 
    
    ```
      Use Petal_Width instead of Petal.Width  as column name
    /home/jenkins/workspace/SparkPullRequestBuilder/R
    * checking for file '/home/jenkins/workspace/SparkPullRequestBuilder/R/pkg/DESCRIPTION' ... OK
    * preparing 'SparkR':
    * checking DESCRIPTION meta-information ... OK
    * installing the package to build vignettes
    * creating vignettes ... ERROR
    
    Attaching package: 'SparkR'
    
    The following objects are masked from 'package:stats':
    
        cov, filter, lag, na.omit, predict, sd, var, window
    
    The following objects are masked from 'package:base':
    
        as.data.frame, colnames, colnames<-, drop, intersect, rank,
        rbind, sample, subset, summary, transform, union
    
    Spark not found in SPARK_HOME: 
    Spark not found in the cache directory. Installation will start.
    MirrorUrl not provided.
    Looking for preferred site from apache website...
    Preferred mirror site found: http://mirror.nexcess.net/apache/spark
    Downloading spark-2.1.0 for Hadoop 2.7 from:
    - http://mirror.nexcess.net/apache/spark/spark-2.1.0/spark-2.1.0-bin-hadoop2.7.tgz
    trying URL 'http://mirror.nexcess.net/apache/spark/spark-2.1.0/spark-2.1.0-bin-hadoop2.7.tgz'
    Fetch failed from http://mirror.nexcess.net/apache/spark
    To use backup site...
    Downloading spark-2.1.0 for Hadoop 2.7 from:
    - http://www-us.apache.org/dist/spark/spark-2.1.0/spark-2.1.0-bin-hadoop2.7.tgz
    trying URL 'http://www-us.apache.org/dist/spark/spark-2.1.0/spark-2.1.0-bin-hadoop2.7.tgz'
    Fetch failed from http://www-us.apache.org/dist/spark
    Quitting from lines 31-32 (sparkr-vignettes.Rmd) 
    Error: processing vignette 'sparkr-vignettes.Rmd' failed with diagnostics:
    Unable to download Spark spark-2.1.0 for Hadoop 2.7. Please check network connection, Hadoop version, or provide other mirror sites.
    Execution halted
    ```
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] build vignettes with packag...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15790#discussion_r87448147
  
    --- Diff: R/CRAN_RELEASE.md ---
    @@ -0,0 +1,74 @@
    +# SparkR CRAN Release
    +
    +To release SparkR as a package to CRAN, we would use the `devtools` package. Please work with the
    +`dev@spark.apache.org` community and R package maintainer on this.
    +
    +### Release
    +
    +First, check that the `Version:` field in the `pkg/DESCRIPTION` file is updated. Also, check for stale file not under source control.
    --- End diff --
    
    nit - `stale files`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] update vignettes for CRAN release ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] update vignettes for CRAN release ...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Basically it is building vignettes multiple times - once in create-doc.sh, once with `R CMD build`.
    
    I'll skip the one in create-doc.sh to get it to create vignettes together with the source package, which I think is the more nature or common behavior.
    
    Also, we are currently passing `--no-manual` to `R CMD check` (in check-cran.sh while running from run-tests.sh), otherwise it will once again try to build vignettes (this time from the source package)



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] build vignettes with packag...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15790#discussion_r87510311
  
    --- Diff: R/create-docs.sh ---
    @@ -52,21 +52,28 @@ Rscript -e 'libDir <- "../../lib"; library(SparkR, lib.loc=libDir); library(knit
     
     popd
     
    -# Find Spark jars.
    -if [ -f "${SPARK_HOME}/RELEASE" ]; then
    -  SPARK_JARS_DIR="${SPARK_HOME}/jars"
    +if [ -n "$NO_VIGNETTES" ]
    +then
    +  echo "Skipping R vignettes"
     else
    -  SPARK_JARS_DIR="${SPARK_HOME}/assembly/target/scala-$SPARK_SCALA_VERSION/jars"
    -fi
     
    -# Only create vignettes if Spark JARs exist
    -if [ -d "$SPARK_JARS_DIR" ]; then
    -  # render creates SparkR vignettes
    -  Rscript -e 'library(rmarkdown); paths <- .libPaths(); .libPaths(c("lib", paths)); Sys.setenv(SPARK_HOME=tools::file_path_as_absolute("..")); render("pkg/vignettes/sparkr-vignettes.Rmd"); .libPaths(paths)'
    +  # Find Spark jars.
    --- End diff --
    
    Yeah that seems fine to me. the `create-doc.sh` is used to generate docs for the Spark website etc. so its probably ok to not do the vignette as a part of that.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/68352/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    **[Test build #68348 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68348/consoleFull)** for PR 15790 at commit [`4d6c919`](https://github.com/apache/spark/commit/4d6c919b8517cb30430677cfd5efa64da873a234).
     * This patch **fails SparkR unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] update vignettes for CRAN release ...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    opened SPARK-18347


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    **[Test build #68352 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68352/consoleFull)** for PR 15790 at commit [`9f24e3f`](https://github.com/apache/spark/commit/9f24e3f89595d469d279093a924d13898de0517d).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    @felixcheung I noticed one more thing - We are somehow not registering the vignette correctly with the R package. So for example if I launch `./bin/sparkR` and then run `vignette(package="dplyr")`
    I see a list of vignettes that I can then launch with `vignette("introduction", package="dplyr")`. However this doesn't seem to work with our vignette - I'm not sure what we need to do to get this to work though.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/68500/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    **[Test build #68500 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68500/consoleFull)** for PR 15790 at commit [`1681005`](https://github.com/apache/spark/commit/1681005b6fe237d931fcea3daeaed3cb8c6087a1).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    this is good to go in?



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Problem is the required and generated `vignette.rds` RDS file is a binary file?
    I'm not sure about checking in binaries in git, that would show up in a source-only release?
    Maybe create-distribution.sh should run the equivalent of `R CMD install SparkR.tar.gz` to generate the binaries necessary that would only go to a binary release?
    
    How about we merge this PR first - I can test out the release mechanism more next week.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Sorry I got caught up with some other stuff - Will take a look at this today.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] build vignettes with package, upda...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #15790: [SPARK-18264][SPARKR] build vignettes with packag...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15790#discussion_r87507867
  
    --- Diff: R/pkg/vignettes/sparkr-vignettes.Rmd ---
    @@ -1,12 +1,13 @@
     ---
     title: "SparkR - Practical Guide"
     output:
    -  html_document:
    -    theme: united
    +  rmarkdown::html_vignette:
         toc: true
         toc_depth: 4
    -    toc_float: true
    -    highlight: textmate
    +vignette: >
    --- End diff --
    
    I see - I think thats fine then.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #15790: [SPARK-18264][SPARKR] update vignettes for CRAN release ...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/spark/pull/15790
  
    I looked the `qpdf` warning is from a fairly strict [check](https://github.com/wch/r-source/blob/tags/R-3-3-2/src/library/tools/R/check.R#L325) - I don't see a way around it other than getting qpdf on the system (it's a tool, not a R package).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org