Skip to content

Unable to install MuSiC with the current devtools instructions #144

Description

@SergejRuff

Hello,

I tried to install MuSiC with the current instructions given by the github README,

When I run

devtools::install_github('xuranw/MuSiC')

I get the following error:

ERROR: dependency 'TOAST' is not available for package 'MuSiC'
Perhaps try a variation of:
install.packages('TOAST')
* removing 'C:/Users/241262/AppData/Local/Programs/R/R-4.6.0/library/MuSiC'
Warning messages:
1: `install_github()` was deprecated in devtools 2.5.0.
ℹ Please use pak::pak("user/repo") instead.
This warning is displayed once per session.
Call [lifecycle::last_lifecycle_warnings()](vscode-file://vscode-app/c:/Users/241262/AppData/Local/Programs/Positron/resources/app/out/vs/code/electron-browser/workbench/workbench.html#) to see where this warning was generated. 
2: package ‘TOAST’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at
[https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages](vscode-file://vscode-app/c:/Users/241262/AppData/Local/Programs/Positron/resources/app/out/vs/code/electron-browser/workbench/workbench.html#) 
3: In file.copy(savedcopy, lib, recursive = TRUE) :
  problem copying C:\Users\241262\AppData\Local\Programs\R\R-4.6.0\library\00LOCK\rlang\libs\x64\rlang.dll to C:\Users\241262\AppData\Local\Programs\R\R-4.6.0\library\rlang\libs\x64\rlang.dll: Permission denied
4: In i.p(...) :
  installation of package ‘C:/Users/241262/AppData/Local/Temp/RtmpAHQWfc/file441048f94e5b/MuSiC_1.0.0.tar.gz’ had non-zero exit status

The solution is to use the pak command from the pak package:

pak::pak('xuranw/MuSiC')

Could you please update the README page and replace the devtools with the pak command?

best regards,
Sergej

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions