open the working directory as a window in finder
Simply enter:
system(command=sprintf('open %s', shQuote(getwd())))
It has been introduced in HepersMG package > 4.5-1 as the function openwd()
https://CRAN.R-project.org/package=HelpersMG
install.packages("https://hebergement.universite-paris-saclay.fr/marcgirondot/CRAN/HelpersMG.tar.gz", repos=NULL, type="source")
library(HelpersMG)
openwd()
It should work also for windows with shell.exec(getwd())
Commentaires
Enregistrer un commentaire