Encountered error when trying to import the harp package in R

Dear administrator, hello. I have successfully installed harp using Anaconda and connected its library path in R. My R version is also up to date at 4.4.1, but I am unable to import harp. Could you please help me figure out what’s going on? Thank you very much.

Did you also install the r-harp conda package?
Note that the R interface of HARP is provided using this separate package (to prevent the default harp package bringing in a full R installation).

Dear administrator, hello. I am a sophomore student at university, and I apologize for my limited knowledge. I have been following the HARP documentation for installation and have modified the library path (as suggested in one of your previous responses). I am not clear on what you meant, could you please provide further guidance? Thank you very much. (I have installed HARP using conda and am now operating in RStudio.)

Dear administrator, the steps I have taken are as follows: First, I used conda in the terminal to download HARP. Then, I modified the library path in my installed RStudio to point to HARP’s site-library. Finally, when I entered library(harp) in RStudio, an error occurred.

Did I miss any steps, such as configuring environment variables or something like that?

You should be using R from the conda environment as well. I am not sure whether you can combine the conda environment with an RStudio installation that is located separately on your system (apparently it doesn’t?).

My issue has been resolved, thank you very much.

Dear administrator, hello. Although I have successfully resolved the issue now, I am still quite puzzled. I ran these codes in the terminal, and the results were correct. However, it is not convenient to write code in the terminal without an interface. Could you please offer some suggestions? (Please forgive me if my question seems silly to you.)

I am unfortunately not that familiar with using RStudio. I saw that there is an rstudio package on conda-forge, but this seems to only be available for linux and macos. I am not sure how this can be made to work on Windows. Perhaps other members on the forum can help with this?

Alright, administrator, thank you very much.