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

Bug no. 1 (bonus content) #1

Open
AndrzejRomaniuk opened this issue Jun 22, 2022 · 0 comments
Open

Bug no. 1 (bonus content) #1

AndrzejRomaniuk opened this issue Jun 22, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@AndrzejRomaniuk
Copy link
Owner

In app.R in bonus code:

output$downloadData <- downloadHandler(
filename = function(){
paste("results.txt")
},
content = function(file) {
writeLines(paste(capture.output( {SummaryData()} )), file)
}
)

successfully creates a populated output only if SummaryData() contains summary() function results.
Else, if print() is used to provide infromation, it simply creates an empty file.

Checked capture.output(), but it seems both outputs are in fact captured.
paste() also seems to be working.

if so, most likely the issue is writeLines() function, but alternatives seems not to work at all.

Keep the issue opened.

@AndrzejRomaniuk AndrzejRomaniuk added the bug Something isn't working label Jun 22, 2022
@AndrzejRomaniuk AndrzejRomaniuk self-assigned this Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant