Coder Social home page Coder Social logo

Comments (8)

ClaudioZandonella avatar ClaudioZandonella commented on August 13, 2024 5

Hi @richardjtelford,

I did not know about Quarto, AMAZING! Thank you for pointing out this incredible initiative.
I have immediately added support to quarto documents. To my understanding, they have the same exact syntax as r-markdown documents, so all trackdown features (hide-code, rich-text) should already work properly.

However, I am new to Quarto so for the moment I have created a separate new branch quarto with the required changes. Before merging into the master, I prefer to properly check how Quarto works and add unit-test dedicated to Quarto.

You can already install the quarto version running,

remotes::install_github("ClaudioZandonella/trackdown", ref = "quarto")

Regarding google drive authentication, the story is a little bit longer 😅.

Trackdown now uses its own app API credentials, but the app still needs to be verified by google. The process, unfortunately, is going slowly and actually, I am afraid that the app will not be accepted by google.

There are no security issues, trackdown works exactly the same as other r-packages (e.g., gooogledrive), so you can use trackdown without problems. The issue is that there are many requirements (e.g., display logo google and google drive) that need to be satisfied. It will be no problem on a GUI app, but impossible to do on the command line R interface.

Anyway, you can use trackdown on desktop application (Rstudio, R console) and authentication displays a warning message as discussed in #28 (comment). You need to accept and select all options.

Note that this does not work for oob (out-of-band) authentication done when working on browser for example when using R studio server, for example. Google verification is required for this.
You would need to create your own personal token for google drive API, but it is a quite long-complex process. I have been trying to solve this whole issue but I am still working on it.

Please let me know which specific google drive authentication issue you found.

from trackdown.

richardjtelford avatar richardjtelford commented on August 13, 2024 1

I took a qmd file for a round trip through google drive and everything seemed to work fine. Many thanks

I think the authentication problem may be because I had not clicked on the right button after the warning screens, I was getting a 403 error. I ran googledrive::drive_auth() and was able to go through the process again and everything was happy.

With trackdown::dowload_file() I ran into a curl error

gnutls_handshake() failed: An unexpected TLS packet was received.

This resolved itself after a few attempts so not sure what went wrong there

from trackdown.

krlmlr avatar krlmlr commented on August 13, 2024 1

NEWS.md mentions Quarto is supported as of version 1.4.0?

from trackdown.

ClaudioZandonella avatar ClaudioZandonella commented on August 13, 2024 1

Quarto is now supported🎉

from trackdown.

kaijagahm avatar kaijagahm commented on August 13, 2024

Hi! I am having trouble using trackdown with quarto. My authentication worked easily, but when I run trackdown::upload_file(file = "manuscript.qmd", gfile = "manuscript"), I get the error "Error: manuscript.qmd not supported file type (only .Rmd or .Rnw)".

Is quarto no longer supported, or am I doing something wrong?

Edited to add: I initially tried downloading the quarto dev branch as described above but it was no longer available, and since you later said that quarto was supported, I figured I'd go ahead and try it.

from trackdown.

richardjtelford avatar richardjtelford commented on August 13, 2024

@kaijagahm

Quarto is supported by the version of trackdown on github.
You can install the it with

remotes::install_github("claudiozandonella/trackdown", build_vignettes = TRUE)

from trackdown.

kaijagahm avatar kaijagahm commented on August 13, 2024

Thanks @richardjtelford! I downloaded the github version. Unfortunately, Google is now blocking me from authenticating the app. It says "This app tried to access sensitive info in your Google Account. To keep your account safe, Google blocked this access." I tried toggling on "allow less secure apps," but to no avail.

It's possible this is a feature of my school's google accounts, but I'm going to re-try and make sure that this authentication trouble is indeed a difference between the Github and non-Github versions.

from trackdown.

richardjtelford avatar richardjtelford commented on August 13, 2024

@kaijagahm

Apparently trackdown has reached the maximum number of users on its current credential (see https://claudiozandonella.github.io/trackdown/).

It is possible to set up your own google configuration. I've done this. It wasn't the most fun way to spend time, but I got it working - see https://claudiozandonella.github.io/trackdown/articles/oauth-client-configuration.html for instructions

from trackdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.