raymondlouie / MiniMarS

4 stars 2 forks source link

Installing the package on Mac #1

Closed dhrutiparikh closed 1 year ago

dhrutiparikh commented 1 year ago

install.packages("~/data/hackathonpaper/ClusterMarkers-main.zip", repos = NULL, type = "win.binary") Installing package into ‘/Users/dparikh/Library/R/x86_64/4.2/library’ (as ‘lib’ is unspecified) Error in install.packages : cannot install Windows binary packages on this platform

anglixue commented 1 year ago

Have you tried set type = "source"? It returns a different error

> install.packages("~/Downloads/ClusterMarkers-main.zip",type="source",repo=NULL)
Error in rawToChar(block[seq_len(ns)]) : 
  embedded nul in string: 'PK\003\004\n\0\0\0\0\0`+\x8aU\0\0\0\0\0\0\0\0\0\0\0\0\024\0\t\0ClusterMarkers-main/UT\005\0\001$\x89\x94cPK\003\004\n\0\0\0\b\0`+\x8aU\x8ewq\xa1\030\0\0\0\034\0\0\0!\0\t\0ClusterMark'
Warning in install.packages :
  installation of package ‘/Users/anglix/Downloads/ClusterMarkers-main.zip’ had non-zero exit status

I'll fix that later.

dhrutiparikh commented 1 year ago

Yes, if I change it to type = "source", then I do get the same error as you.

anglixue commented 1 year ago

I've rebuilt the package on Mac and the new source file can be installed without errors. I've updated the readme file for the installation guidance.