[R] How to automatically set R to read the files from a specific location

Bert Gunter bgunter@4567 @end|ng |rom gm@||@com
Thu Mar 3 00:07:17 CET 2022

I may well be wrong, but I believe you will need to give more info on
where the files are located (e.g. on a remote server, on a website, a
local machine, ...), whether they consist only of data or whether
there are packages with functions that need to be used, etc.

A better approach might be to combine data and files into a package,
put the package where you all have access, and then give your prof the
code to download it from there.

Others may have better ideas, so do wait for more responses.

Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Wed, Mar 2, 2022 at 2:55 PM Paul Bernal <paulbernal07 using gmail.com> wrote:
> Dear friends,
> I am working on an assignment using R, and I would like to set my R code so
> that R automatically recognizes where the files that need to be read are
> without having to use the absolute path?
> The idea is that when I send my .R script and my professor receives it, he
> can just execute the code without running into any issues.
> Thanks, beforehand, for your valuable feedback.
> Cheers,
> Paul
>         [[alternative HTML version deleted]]
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list