WangX-Lab / PreMSIm

6 stars 1 forks source link

msi_pre can not work #5

Open ypmjx123 opened 1 month ago

ypmjx123 commented 1 month ago

path = system.file("extdata", "example.txt", package = "PreMSIm", mustWork = TRUE) input_data = data_pre(path, type = "ID") msi_pre(input_data)

path = system.file("extdata", "example.txt", package = "PreMSIm", mustWork = TRUE) input_data = data_pre(path, type = "ID") msi_pre(input_data) 错误于missing(input_data) || !class(input_data) %in% c("matrix", "data.frame"): 'length = 2' in coercion to 'logical(1)'

how to fix this matter? please!

WangX-Lab commented 1 month ago

Hello,

Thank you for your interest in our tool.

The error here is because you are using a newer version of R. PreMSIm was initially built on R3.6.1, and now we have fixed and updated the source code and tested it in R4.4.1. You can reinstall the PreMSIm package and use it.

With the best regards,

Xiaosheng Wang, MD, PhD China Pharmaceutical University Xiaosheng Wang, MD, PhD China Pharmaceutical University

---- Replied Message ---- From ypmjx123 @.> Date 10/11/2024 11:26 To WangX-Lab/PreMSIm @.> Cc Subscribed @.***> Subject [WangX-Lab/PreMSIm] msi_pre can not work (Issue #5)

path = system.file("extdata", "example.txt", package = "PreMSIm", mustWork = TRUE) input_data = data_pre(path, type = "ID") msi_pre(input_data) path = system.file("extdata", "example.txt", package = "PreMSIm", mustWork = TRUE) input_data = data_pre(path, type = "ID") msi_pre(input_data) 错误于missing(input_data) || !class(input_data) %in% c("matrix", "data.frame"): 'length = 2' in coercion to 'logical(1)' how to fix this matter? please! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

ypmjx123 commented 1 month ago

Hello, Thank you for your interest in our tool. The error here is because you are using a newer version of R. PreMSIm was initially built on R3.6.1, and now we have fixed and updated the source code and tested it in R4.4.1. You can reinstall the PreMSIm package and use it. With the best regards, Xiaosheng Wang, MD, PhD China Pharmaceutical University Xiaosheng Wang, MD, PhD China Pharmaceutical University ---- Replied Message ---- From ypmjx123 @.> Date 10/11/2024 11:26 To WangX-Lab/PreMSIm @.> Cc Subscribed @.> Subject [WangX-Lab/PreMSIm] msi_pre can not work (Issue #5) path = system.file("extdata", "example.txt", package = "PreMSIm", mustWork = TRUE) input_data = data_pre(path, type = "ID") msi_pre(input_data) path = system.file("extdata", "example.txt", package = "PreMSIm", mustWork = TRUE) input_data = data_pre(path, type = "ID") msi_pre(input_data) 错误于missing(input_data) || !class(input_data) %in% c("matrix", "data.frame"): 'length = 2' in coercion to 'logical(1)' how to fix this matter? please! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>

Thanks a lot!!!