[R] Install a package from OSF
Shu Fai Cheung
@hu|@|@cheung @end|ng |rom gm@||@com
Sun Sep 28 14:53:46 CEST 2025
Hi All,
I would like to let reviewers download and install a package from OSF. It
is for double-blind review, and so I need to create an anonymized version
at OSF. I can ask reviewers to download the file and install it locally.
However, the reviewers may not be familiar with this. Is it possible to do
this in one function call? For example, something like this, from the help
of remotes::install_url():
remotes::install_url("https://github.com/hadley/stringr/archive/HEAD.zip")
I tried the following (the link is a fake one, just for illustration):
remotes::install_url("https://osf.io/abcde/download?view_only=abcdefg")
I confirmed in a browser that the link with "/download" added is a
direct link to download the file created by R CMD build.
However, I got the following error:
Error: Failed to install 'unknown package' from URL:
Don't know how to decompress files with extension
Is there another way to install a package directly from OSF?
Regards,
Shu Fai
[[alternative HTML version deleted]]
More information about the R-help
mailing list