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

Error when specifying a logo file in buildStudyHub #27

Open
katy-sadowski opened this issue May 16, 2024 · 0 comments
Open

Error when specifying a logo file in buildStudyHub #27

katy-sadowski opened this issue May 16, 2024 · 0 comments

Comments

@katy-sadowski
Copy link
Collaborator

Ulysses/R/website.R

Lines 16 to 38 in 6f06202

makeWebsiteYaml <- function(footer = NULL,
logoPath = NULL,
backgroundColor = "#336B91", #OHDSI Blue
projectPath = here::here()) {
# retrieve study meta
studyMeta <- retrieveStudySettings(projectPath = projectPath)$study
if (is.null(footer)) {
footer <- "Produced using Ulysses Package"
}
if (is.null(logoPath)) {
logoPath <- fs::path_package("Ulysses", "images")
importImages(imageFolder = logoPath, projectPath = here::here())
logo <- "images/ohdsi_logo.png"
}

The function sets the logo variable if logoPath is not specified, but not if a path is specified.

Error:

buildStudyHub(logoPath = 'images/images/bi_logo.png', backgroundColor = '#00E47C')
Error in rlang::list2(Title = replaceTitleColon(studyMeta$title), Footer = footer, :
object 'logo' not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant