Closed psyprofmichele closed 3 weeks ago
Image download from Google Drive might work like this - if so, that would make it easy to include pictures: https://stackoverflow.com/a/39225272
@psyprofmichele already created a template spreadsheet: https://docs.google.com/spreadsheets/d/19ylN6fWPO_aMLx9pPBacXodXKEih42iNmceInhMT6Zg/edit?gid=0#gid=0
ChatGPT solution - I have added these links I created to the excel sheet:
Get the Shareable Link:
Extract the File ID:
https://drive.google.com/file/d/FILE_ID/view?usp=sharing
.FILE_ID
part from the link.Create a Direct Download Link:
https://drive.google.com/uc?export=download&id=FILE_ID
FILE_ID
with the actual file ID from your Google Drive link.That link does not work inside an HTML file (as ChatGPT claims) - but can be used to download. E.g, with this code:
library(httr)
# Define the URL and destination file path
url <- "https://drive.google.com/uc?export=download&id=15Gs3ZWBROhsATHUGp8_K9RefR1KN9d_O"
destfile <- "downloaded_file"
# Download the file
GET(url, write_disk(destfile, overwrite = TRUE))
# Check if the file is downloaded
if (file.exists(destfile)) {
message("File downloaded successfully.")
} else {
message("File download failed.")
}
Never closed this - but it now works from the URL above
Create an announcement section that can be updated via an excel sheet. For this identify how an image can be displayed via an imageurl.