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

Deal with hyperlinks #172

Open
jennybc opened this issue Jun 17, 2020 · 7 comments
Open

Deal with hyperlinks #172

jennybc opened this issue Jun 17, 2020 · 7 comments
Labels
feature a feature request or enhancement types 🏭 Cell and column types

Comments

@jennybc
Copy link
Member

jennybc commented Jun 17, 2020

Consider a cell that holds a hyperlink. Currently we just import the link text, unless we get full cell data. Figure out if there's some intermediate that makes it easier to get the URLs. Need to also investigate the case of cell text that is only partially a hyperlink.

@jennybc jennybc added feature a feature request or enhancement types 🏭 Cell and column types labels Jun 17, 2020
@allenbaron
Copy link

I would also like to be able to write hyperlinks to google sheets.

@MichaelChirico
Copy link
Contributor

MichaelChirico commented Dec 1, 2021

Ditto! Is there any known workaround to writing hyperlinks to sheets? Wrapping the text as <a href="{URL}">{URL}</a> didn't help, e.g.

@jennybc
Copy link
Member Author

jennybc commented Dec 1, 2021

I think I really have to implement hyperlinks properly to get this (?). I don't personally know of a workaround off the top of my head.

@MichaelChirico
Copy link
Contributor

MichaelChirico commented Dec 1, 2021

At least for writing, it looks like =HYPERLINK("{URL}") is the way to link a cell... unfortunately write_sheet() escapes it by prepending '

@jennybc
Copy link
Member Author

jennybc commented Dec 1, 2021

I can't test this myself right now, but maybe try writing that as a formula.

https://googlesheets4.tidyverse.org/articles/write-sheets.html#write-formulas

@MichaelChirico
Copy link
Contributor

Ah that's wonderful! Thanks!!! Solves my issue, which is narrower than that of this issue overall.

@benyamindsmith
Copy link

I would like this feature to also be available to read a google sheet data with hyperlinks and write it to other sheets with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement types 🏭 Cell and column types
Projects
None yet
Development

No branches or pull requests

4 participants