-
Notifications
You must be signed in to change notification settings - Fork 1
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
Build fails at creating vignette #4
Comments
Ok the issue is with handling authorisations or credentials through package
|
Exactly. I am not getting this error because the first time I run something involving googledrive it was in an interactive session, where a chrome sheet opens and you can give the authorisation. Once you have done it everything should be working fine. |
@TheoPannetier does it work after you get the authorisation from an interactive session? |
No, I'm not sure what is going wrong there. |
I love irony
|
Fixed: to trigger the interactive commands I just needed to supply non-default values to the arguments of
That sent me to the authorization request page of Google Drive and gave me the required password after confirmation. |
I think it's worth including some doc for users explaining shortly how to set |
If I might chime in: do we really need the vignettes to build properly in R check? I suspect this is happening because the environment in R check is more restrictive handling temporary files and connections than interactive sessions. For the record, the vignette doesn't build in R check for me locally but it does build in an interactive session, and there it fails because of the SSH connection fails somehow in check. If we really want the vignettes to build properly then this is a problem, but if they're to work as an example core repository perhaps this isn't so much of an issue. An alternative would be making a folder with this code and taking it from the vignettes. I think I recall there are also demos, but they're not recommended if I remember well. In any case, good to hear it's working properly, @TheoPannetier. |
You're definitely welcome to chime in 👍 I don't see how one would expect the vignette to build when installed by a new user, for whom the drive authorizations are not set up. I think it would be a lot simpler to turn Is the |
@TheoPannetier I think you are right. That vignette has never been meant to build as an html file. It's just a guided scripts that people can run step by step to understand how functions work. |
Vignette creation still fails because of Google API shenanigans
This is apparently a common error, see tidyverse/googledrive#279 |
@Giappo you could just turn off code blocks eval, then build the html and the code displayed in code blocks could still serve as guided scripts even if they're not actually run 😉 |
Ok, great news, it works! |
I made it so that |
Brilliant, thanks! |
Hmm, indeed it seems like it doesn't, leaving the other option wiping the library folder and starting over (which I think is too much hassle for the gain). I propose we wait until one of the other lab members uses the package to see what they run into, if there are no problems, we're good to go, otherwise it might be worth looking into. Great job simplifying the first user setup and vignette, guys! |
Let's assume the issue solved, until proven wrong. |
I got this error trying to build on either
develop
ormaster
on unix.Do you have the same issue on windows?
─ installing the package to build vignettes E creating vignettes (6.5s) --- re-building ‘demo.Rmd’ using rmarkdown createTcpServer: address already in use Quitting from lines 32-40 (demo.Rmd) Error: processing vignette 'demo.Rmd' failed with diagnostics: Can't get Google credentials. Are you running googledrive in a non-interactive session? Consider: *
drive_deauth()to prevent the attempt to get credentials. * Call
drive_auth()` directly with all necessary specifics.--- failed re-building ‘demo.Rmd’
--- re-building ‘pocket_demo.Rmd’ using rmarkdown
Quitting from lines 24-55 (pocket_demo.Rmd)
Error: processing vignette 'pocket_demo.Rmd' failed with diagnostics:
there is no package called 'sls'
--- failed re-building ‘pocket_demo.Rmd’
SUMMARY: processing the following files failed:
‘demo.Rmd’ ‘pocket_demo.Rmd’
Error: Vignette re-building failed.
Execution halted
Warning message:
Disconnecting from unused ssh session. Please use ssh_disconnect()
Error: System command 'R' failed, exit status: 1, stdout + stderr:
E> * checking for file ‘/Users/theo/Github/jap/DESCRIPTION’ ... OK
E> * preparing ‘jap’:
E> * checking DESCRIPTION meta-information ... OK
E> * installing the package to build vignettes
E> * creating vignettes ... ERROR
E> --- re-building ‘demo.Rmd’ using rmarkdown
E> createTcpServer: address already in use
E> Quitting from lines 32-40 (demo.Rmd)
E> Error: processing vignette 'demo.Rmd' failed with diagnostics:
E> Can't get Google credentials.
E> Are you running googledrive in a non-interactive session? Consider:
E> *
drive_deauth()
to prevent the attempt to get credentials.E> * Call
drive_auth()
directly with all necessary specifics.E>
E> --- failed re-building ‘demo.Rmd’
E>
E> --- re-building ‘pocket_demo.Rmd’ using rmarkdown
E> Quitting from lines 24-55 (pocket_demo.Rmd)
E> Error: processing vignette 'pocket_demo.Rmd' failed with diagnostics:
E> there is no package called 'sls'
E> --- failed re-building ‘pocket_demo.Rmd’
E>
E> SUMMARY: processing the following files failed:
E> ‘demo.Rmd’ ‘pocket_demo.Rmd’
E>
E> Error: Vignette re-building failed.
E> Execution halted
E> Warning message:
E> Disconnecting from unused ssh session. Please use ssh_disconnect()
E>
Stack trace:
x System command 'R' failed, exit status: 1, stdout + stderr:
E> * checking for file ‘/Users/theo/Github/jap/DESCRIPTION’ ... OK
E> * preparing ‘jap’:
E> * checking DESCRIPTION meta-information ... OK
E> * installing the package to build vignettes
E> * creating vignettes ... ERROR
E> --- re-building ‘demo.Rmd’ using rmarkdown
E> createTcpServer: address already in use
E> Quitting from lines 32-40 (demo.Rmd)
E> Error: processing vignette 'demo.Rmd' failed with diagnostics:
E> Can't get Google credentials.
E> Are you running googledrive in a non-interactive session? Consider:
E> *
drive_deauth()
to prevent the attempt to get credentials.E> * Call
drive_auth()
directly with all necessary specifics.E>
E> --- failed re-building ‘demo.Rmd’
E>
E> --- re-building ‘pocket_demo.Rmd’ using rmarkdown
E> Quitting from lines 24-55 (pocket_demo.Rmd)
E> Error: processing vignette 'pocket_demo.Rmd' failed with diagnostics:
E> there is no package called 'sls'
E> --- failed re-building ‘pocket_demo.Rmd’
E>
E> SUMMARY: processing the following files failed:
E> ‘demo.Rmd’ ‘pocket_demo.Rmd’
E>
E> Error: Vignette re-building failed.
E> Execution halted
E> Warning message:
E> Disconnecting from unused ssh session. Please use ssh_disconnect()
E>
Execution halted
Exited with status 1.
`
The text was updated successfully, but these errors were encountered: