Using relative paths to organise data, code, and output gets a big thumbs up from me. 👍
@Riffomonas
2 жыл бұрын
🎉
@fcasoqueiroz
2 жыл бұрын
fantastic!!!! I'm so glad to discover this channel!!!
@Riffomonas
2 жыл бұрын
Wonderful! Be sure to tell your friends 🤓
@haraldurkarlsson1147
2 жыл бұрын
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?
@Riffomonas
2 жыл бұрын
Thanks! I covered it about a year ago in the context of r markdown. But that’s a good idea to revisit it package.
@drjzee
2 жыл бұрын
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.
@Riffomonas
2 жыл бұрын
I’ve mainly used here within R markdown documents. Have you found it useful in scripts too?
@danielvaulot5105
2 жыл бұрын
@@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
@cristinavesbach9612
2 жыл бұрын
what is the value of using >path
@Riffomonas
2 жыл бұрын
Hmmm. I’ve never seen that before. Do you have a link to an example?
Пікірлер: 13