Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FSelector #13

Open
Autismht opened this issue Mar 17, 2022 · 11 comments
Open

FSelector #13

Autismht opened this issue Mar 17, 2022 · 11 comments

Comments

@Autismht
Copy link

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
Copy link
Owner

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

@Autismht
Copy link
Author

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

@emrehanks
Copy link
Owner

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
Copy link
Author

您可能会遇到此问题,因为 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
Copy link
Owner

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
Copy link
Owner

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

@skeeperloyaltie
Copy link

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
Copy link

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
Copy link
Owner

emrehanks commented Nov 17, 2022 via email

@skeeperloyaltie
Copy link

you could install randomForest from r-cran-randomForest

sudo apt-get install r-cran-randomForest

@skeeperloyaltie
Copy link

skeeperloyaltie commented Nov 17, 2022

I just installed it
did
??randomForest


Screenshot at 2022-11-17 09-08-11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants