Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-21805][SPARKR] Disable R vignettes code on Windows #19016

Closed
wants to merge 3 commits into from

Conversation

felixcheung
Copy link
Member

What changes were proposed in this pull request?

Code in vignettes requires winutils on windows to run, when publishing to CRAN or building from source, winutils might not be available, so it's better to disable code run (so resulting vigenttes will not have output from code, but text is still there and code is still there)

fix * checking re-building of vignette outputs ... WARNING
and

%LOCALAPPDATA% not found. Please define the environment variable or restart and enter an installation path in localDir.

How was this patch tested?

jenkins, appveyor, r-hub

before: https://artifacts.r-hub.io/SparkR_2.2.0.tar.gz-49cecef3bb09db1db130db31604e0293/SparkR.Rcheck/00check.log
after: https://artifacts.r-hub.io/SparkR_2.2.0.tar.gz-86a066c7576f46794930ad114e5cff7c/SparkR.Rcheck/00check.log

@felixcheung felixcheung changed the title [SPARK-21805] Disable R vignettes code on Windows [SPARK-21805][SPARKR] Disable R vignettes code on Windows Aug 22, 2017
@SparkQA
Copy link

SparkQA commented Aug 22, 2017

Test build #80965 has finished for PR 19016 at commit 7c75073.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

retest this please

@felixcheung
Copy link
Member Author

what's with jenkins? looks like JIRA is not updated either...

@HyukjinKwon
Copy link
Member

Yes ... for JIRA linking problem, there are some information here - http://apache-spark-developers-list.1001551.n3.nabble.com/Some-PRs-not-automatically-linked-to-JIRAs-td22067.html just FYI. I think -9 has increased recently..

@SparkQA
Copy link

SparkQA commented Aug 22, 2017

Test build #80972 has finished for PR 19016 at commit 7c75073.

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

@felixcheung felixcheung reopened this Aug 23, 2017
@shivaram
Copy link
Contributor

Thanks @felixcheung ! Are the warnings about the missing PDF unavoidable ? I see something like

 checking package vignettes in 'inst/doc' ... WARNING
Package vignette without corresponding PDF/HTML:
   'sparkr-vignettes.Rmd'

@felixcheung
Copy link
Member Author

felixcheung commented Aug 23, 2017 via email

@shivaram
Copy link
Contributor

Ah I see. Yeah the failed tests makes sense. We can also try to submit a custom tar.gz to r-hub to test it with the PDF and a different version number ?

@felixcheung
Copy link
Member Author

felixcheung commented Aug 23, 2017 via email

@@ -27,6 +27,17 @@ vignette: >
limitations under the License.
-->

```{r setup, include=FALSE}
library(knitr)
Copy link
Contributor

Choose a reason for hiding this comment

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

Just to clarify, the opt_hooks is provided by knitr ?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes!

@shivaram
Copy link
Contributor

Sure - change LGTM. Lets see if @HyukjinKwon has any more comments ? If not we can merge to master, branch-2.2 and then do some more tests.

@SparkQA
Copy link

SparkQA commented Aug 23, 2017

Test build #81040 has finished for PR 19016 at commit 23f9d5e.

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

@HyukjinKwon
Copy link
Member

Sure, I have no more comments and it looks good to me too.

asfgit pushed a commit that referenced this pull request Aug 24, 2017
## What changes were proposed in this pull request?

Code in vignettes requires winutils on windows to run, when publishing to CRAN or building from source, winutils might not be available, so it's better to disable code run (so resulting vigenttes will not have output from code, but text is still there and code is still there)

fix * checking re-building of vignette outputs ... WARNING
and
> %LOCALAPPDATA% not found. Please define the environment variable or restart and enter an installation path in localDir.

## How was this patch tested?

jenkins, appveyor, r-hub

before: https://artifacts.r-hub.io/SparkR_2.2.0.tar.gz-49cecef3bb09db1db130db31604e0293/SparkR.Rcheck/00check.log
after: https://artifacts.r-hub.io/SparkR_2.2.0.tar.gz-86a066c7576f46794930ad114e5cff7c/SparkR.Rcheck/00check.log

Author: Felix Cheung <felixcheung_m@hotmail.com>

Closes #19016 from felixcheung/rvigwind.

(cherry picked from commit 43cbfad)
Signed-off-by: Felix Cheung <felixcheung@apache.org>
@felixcheung
Copy link
Member Author

thanks, merged to master/2.2.
will check for nightly build from tonight.

@asfgit asfgit closed this in 43cbfad Aug 24, 2017
@felixcheung
Copy link
Member Author

I tested with the nightly, it passed
https://builder.r-hub.io/status/SparkR_2.2.0.tar.gz-fba296d2142edeb8bcdb082e311d8462

@shivaram
Copy link
Contributor

Thats great ! I will also run this by winbuilder later today.

felixcheung added a commit to felixcheung/spark that referenced this pull request Sep 8, 2017
## What changes were proposed in this pull request?

Code in vignettes requires winutils on windows to run, when publishing to CRAN or building from source, winutils might not be available, so it's better to disable code run (so resulting vigenttes will not have output from code, but text is still there and code is still there)

fix * checking re-building of vignette outputs ... WARNING
and
> %LOCALAPPDATA% not found. Please define the environment variable or restart and enter an installation path in localDir.

## How was this patch tested?

jenkins, appveyor, r-hub

before: https://artifacts.r-hub.io/SparkR_2.2.0.tar.gz-49cecef3bb09db1db130db31604e0293/SparkR.Rcheck/00check.log
after: https://artifacts.r-hub.io/SparkR_2.2.0.tar.gz-86a066c7576f46794930ad114e5cff7c/SparkR.Rcheck/00check.log

Author: Felix Cheung <felixcheung_m@hotmail.com>

Closes apache#19016 from felixcheung/rvigwind.
MatthewRBruce pushed a commit to Shopify/spark that referenced this pull request Jul 31, 2018
## What changes were proposed in this pull request?

Code in vignettes requires winutils on windows to run, when publishing to CRAN or building from source, winutils might not be available, so it's better to disable code run (so resulting vigenttes will not have output from code, but text is still there and code is still there)

fix * checking re-building of vignette outputs ... WARNING
and
> %LOCALAPPDATA% not found. Please define the environment variable or restart and enter an installation path in localDir.

## How was this patch tested?

jenkins, appveyor, r-hub

before: https://artifacts.r-hub.io/SparkR_2.2.0.tar.gz-49cecef3bb09db1db130db31604e0293/SparkR.Rcheck/00check.log
after: https://artifacts.r-hub.io/SparkR_2.2.0.tar.gz-86a066c7576f46794930ad114e5cff7c/SparkR.Rcheck/00check.log

Author: Felix Cheung <felixcheung_m@hotmail.com>

Closes apache#19016 from felixcheung/rvigwind.

(cherry picked from commit 43cbfad)
Signed-off-by: Felix Cheung <felixcheung@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants