Using relative paths to organise data, code, and output gets a big thumbs up from me. 👍
@Riffomonas2 жыл бұрын
🎉
@fcasoqueiroz2 жыл бұрын
fantastic!!!! I'm so glad to discover this channel!!!
@Riffomonas2 жыл бұрын
Wonderful! Be sure to tell your friends 🤓
@drjzee2 жыл бұрын
I've also found the package here to be handy for this, although this adds in an extra package so this seems a straightforward approach.
@Riffomonas2 жыл бұрын
I’ve mainly used here within R markdown documents. Have you found it useful in scripts too?
@danielvaulot51052 жыл бұрын
@@Riffomonas I am using here for code as well... Just need to put a .here file in your root, No need for Project file to identify the root dir
@haraldurkarlsson11472 жыл бұрын
Good advice! I rarely use setwd() for my projects since I keep everything in one place (project folder). However, there is a program that can help with the file path and fact that Mac uses forward slashes and PC backward slashes and that is a tiny package called "here". "here" appears to eliminate the issues with Mac vs PC in terms of path. I wondered if you could spend a few minutes going over that package?
@Riffomonas2 жыл бұрын
Thanks! I covered it about a year ago in the context of r markdown. But that’s a good idea to revisit it package.
@cristinavesbach96122 жыл бұрын
what is the value of using >path
@Riffomonas2 жыл бұрын
Hmmm. I’ve never seen that before. Do you have a link to an example?