2i2c-org / utoronto-image

User image for the UToronto Hub
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

Add trailing new line to Rprofile.site #26

Closed GeorgianaElena closed 2 years ago

GeorgianaElena commented 2 years ago

Right now, Rprofile.site doesn't get sourced at RStudio startup for some reason. Running Sys.getenv("RETICULATE_PYTHON") returns an empty string. But if I run source("/usr/lib/R/etc/Rprofile.site"), then I can see the env var being correctly set.

THis https://yihui.org/en/2018/04/rprofile-trailing-newline/ and other posts I've seen suggest that a missing empty line at the end of the Rprofile file might be why the files doesn't get sourced automatically. I believe it is worth trying as I couldn't find any other reason for this to not be working.

So this PR adds a trailing new line to Rprofile.site otherwise the file is not sourced at startup by RStudio.

github-actions[bot] commented 2 years ago

Binder :point_left: Test this PR on Binder

GeorgianaElena commented 2 years ago

omg, this actually did the trick 🤯

it-works

sgibson91 commented 2 years ago

🤯🤯🤯🤯🤯🤯🤯🤯🤯

yuvipanda commented 2 years ago

Wow, just amazing work @GeorgianaElena!

damianavila commented 2 years ago

Wow, unbelievable!!! Great catch @GeorgianaElena!

Btw, from your picture, it seems there are still issues trying to load the dataset, am I correct?