emrehanks / R-ArcGIS-LSM_ToolPack

This tool is to develop an easy-to-use tool package called Landslide Susceptibility Mapping Tool Pack (LSM Tool Pack) for producing landslide susceptibility maps based on integrating R with ArcMap Software. The proposed tool contains 5 main modules namely: (1) Data Preparation (DP), (2) Feature (Factor) Selection (FS), (3) Logistic Regression (LR), (4) Random Forest (RF), (5) Performance Evaluation (PE) and (6) Create Raster Stack (Multi-Bands).
Apache License 2.0
40 stars 11 forks source link

FSelector #13

Open Autismht opened 2 years ago

Autismht commented 2 years ago

After installing the Java environment, it is solved that chi.square cannot be found in the do call, but Fselector cannot be installed. Just like this: ERROR: dependency 'randomForest' is not available for package 'FSelector'

I sincerely ask you this question

emrehanks commented 2 years ago

Hi, What is the version of R and ArcGIS installed on your computer?

Autismht commented 2 years ago

您好,您电脑上安装的 R 和 ArcGIS 版本是多少? R版本是3.6.3 ArcGIS版本是10.7

emrehanks commented 2 years ago

You may be encountering this issue because the Java Runtime is not fully registered on Windows. Can you try to install the FSelector package on the R base console or RStudio? Try the code was given below.

packageurl <- "https://cran.r-project.org/src/contrib/Archive/FSelector/FSelector_0.31.tar.gz" install.packages(packageurl, repos=NULL, type="source")

Autismht commented 2 years ago

您可能会遇到此问题,因为 Java 运行时未在 Windows 上完全注册。您可以尝试在 R 基本控制台或 RStudio 上安装 FSelector 包吗?试试下面给出的代码。

packageurl <- " https://cran.r-project.org/src/contrib/Archive/FSelector/FSelector_0.31.tar.gz " install.packages(packageurl, repos=NULL, type="source")

I used the code you provided and reconfigured the Java environment, but it still shows the above error. dependency 'randomForest' is not available for package 'FSelector'

emrehanks commented 2 years ago

Hi, Can you replace "arcgisbinding" folder (in C:\Users[username]\Documents\R\win-library\3.6)) with 1.0.1.239 version of package? Don't delete the old one just move to another location. If that doesn't fix your problem, I suggest you do everything one by one as suggested in the installation tutorial on this webpage. There may be a problem with your operating system. Best regards,

https://github.com/R-ArcGIS/r-bridge/releases/download/v1.0.1.239/arcgisbinding_1.0.1.239.zip

emrehanks commented 2 years ago

I made some changes to the script about the "randomForest" issue. Please download all tool package and try again.

skeeperloyaltie commented 1 year ago

After installing the Java environment, it is solved that chi.square cannot be found in the do call, but Fselector cannot be installed. Just like this: ERROR: dependency 'randomForest' is not available for package 'FSelector'

I sincerely ask you this question

Its simple Just fix this by installling default-sdk sudo apt-get install -y default-jdk
sudo apt-get install defailt-jre

sudo R CMD javareconf

skeeperloyaltie commented 1 year ago

After installing the Java environment, it is solved that chi.square cannot be found in the do call, but Fselector cannot be installed. Just like this: ERROR: dependency 'randomForest' is not available for package 'FSelector' I sincerely ask you this question

Its simple Just fix this by installling default-sdk sudo apt-get install -y default-jdk sudo apt-get install defailt-jre

sudo R CMD javareconf

Then just install fselector install.packages('FSelector')

emrehanks commented 1 year ago

Hi, the new version of ‘randomForest ’ package is not supported for R version 4.0.2 and the older version of R. Its only support 4.1 and above. Therefore, I edited the code to fix this problem. Have you ever downloaded the tool pack of the GitHub webpage recently? Best regards On Thu, Nov 17, 2022 at 8:38 AM Godfrey Gudah @.***> wrote:

After installing the Java environment, it is solved that chi.square cannot be found in the do call, but Fselector cannot be installed. Just like this: ERROR: dependency 'randomForest' is not available for package 'FSelector' I sincerely ask you this question

Its simple Just fix this by installling default-sdk sudo apt-get install -y default-jdk sudo apt-get install defailt-jre

sudo R CMD javareconf

Then just install fselector install.packages('FSelector')

— Reply to this email directly, view it on GitHub https://github.com/emrehanks/R-ArcGIS-LSM_ToolPack/issues/13#issuecomment-1318108323, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANDPXMEZNMIP6GSV67YAJQ3WIXAHHANCNFSM5Q6DBS5A . You are receiving this because you commented.Message ID: @.***>

--

Dr. Emrehan Kutluğ ŞAHİN http://www.gyte.edu.tr/personel/1040/9106100/emrehan-kutlu-ahin.aspx Abant İzzet Baysal Üniversitesi / Abant İzzet Baysal University Harita Mühendisliği / Geomatic Engineering Bolu @.** +90 374 254 1000 - 4828*

skeeperloyaltie commented 1 year ago

you could install randomForest from r-cran-randomForest

sudo apt-get install r-cran-randomForest

skeeperloyaltie commented 1 year ago

I just installed it did ??randomForest
Screenshot at 2022-11-17 09-08-11