emmanuelparadis / psmcr

R Port of psmc
Other
12 stars 4 forks source link

install #2

Closed zoumingr closed 4 years ago

zoumingr commented 4 years ago

Hi, Can you tell me how can I install the software? I try to install it using devtools, like this: install_github('emmanuelparadis/psmcr') but it says: error: Failed to install 'unknown package' from GitHub: An unknown option was passed in to libcurl Am i doing something wrong?

emmanuelparadis commented 4 years ago

Hi, Maybe you should use the package remotes instead of devtools.

jckitch commented 4 years ago

Hi, I've gotten a similar error. I've tried this both with devtools and remotes and both give me this:

> remotes::install_github("emmanuelparadis/psmcr")
Error: Failed to install 'unknown package' from GitHub:
  HTTP error 404.
  Not Found

  Did you spell the repo owner (`emmanuelparadis`) and repo name (`psmcr`) correctly?
  - If spelling is correct, check that you have the required permissions to access the repo.

Could this be related to the fact that psmcr is majority C code?

emmanuelparadis commented 4 years ago

psmcr/ should be repeated:

remotes::install_github("emmanuelparadis/psmcr/psmcr")
Candce commented 1 year ago

Hi I am trying to install the program with remotes but I get the following error: gcc -I"C:/PROGRA~1/R/R-42~1.2/include" -DNDEBUG -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c Rpsmc.c -o Rpsmc.o In file included from Rpsmc.c:8: psmc.h:42:2: error: unknown type name 'int64_t' 42 | int64_t sum_L; | ^~~ Rpsmc.c: In function 'count_CpG': Rpsmc.c:155:3: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] 155 | memset(z, 0, 5); | ^~ make: *** [C:/PROGRA~1/R/R-42~1.2/etc/x64/Makeconf:253: Rpsmc.o] Error 1 ERROR: compilation failed for package 'psmcr'

could you please assist. Thanks Candice

emmanuelparadis commented 1 year ago

Hi, It seems your compiler doesn't know about the data type int64_t. On my machine, if I type man int64_t it says (among many other things):

According to POSIX, int8_t, int16_t, and int32_t are required; int64_t is only required in implementations that provide integer types with width 64; and all other types of this form are optional.

So maybe you need to use a compiler supporting this (optional) data type.

For the warning reported in Rpsmc.c:155:3, I fixed it and am going to push the fix in a moment. Cheers, Emmanuel