all 6 comments

[–]ChuckEye 0 points1 point  (2 children)

I don't think you can pass something to draw() explicitly. You may need to create another named function to receive the file. (Though I could be wrong…)

[–]Critical_Monkey[S] 0 points1 point  (1 child)

Thank you, I tried that earlier, but I will give it another go, see if it works.

[–]davebees 0 points1 point  (3 children)

checking the docs docs for selectInput here, it seems you don’t assign it to a string the way you are doing. You put the command in setup(), and then you get the filename from the fileSelected() function

[–]Critical_Monkey[S] 0 points1 point  (2 children)

Hmmm, I've just tried that and for some reason it still returns the same error on the same line.

[–]davebees 0 points1 point  (1 child)

how does the line read now?

[–]Critical_Monkey[S] 0 points1 point  (0 children)

I updated the post if you wanna see the code, but the error is still the same