Get path of current file in jupyter notebook R (irkernel)

Viewed 450

I am looking for a way to get the path of current working notebook on jupyter notebook irkernel in order to do setwd() easier.

Using reticulate and call python os does not work. Although it works in a python notebook.

library(reticulate)
os <- import("os")
os$listdir(".")
0 Answers
Related