I can't install and use library party. I look at the orjent.org website. It specifies that it is an add-on package under GPL-2 License. Can I use this free library? I would like to use ctree model for data management.
> library(party)
Error in library(party) : there is no package called ‘party’
> library(survival)
The error indicates that you do not have party installed in your R environment. Are you using RStudio? If so, one simple way to confirm this is to check the pane in your RStudio IDE with the tabs "File", "Plots", "Packages", "Help", "Viewer", and "Presentation". Select "Packages" and scroll to see if you can find party within your list. If not, you'll need to install it before loading it into your session.
To install the package, type the following into your console:
install.packages("party")
This will download the package into your R environment from CRAN. Here is the link to the party project on CRAN for your reference. You should now find the package in the "Packages" tab I referenced previously.
To begin usingparty in your active R session, you will now load the package:
library(party)
I hope this helps get you started in the right direction! I'll let other folks chime in on other aspects of your post. Of note, I was unable to open the link you provided.
I'm assuming the output you've shared is from the Cloud instance since it appears as thought it was successfully installed. Can you share any messaging/information about your RStudio Desktop session? Particularly, what happens when you try installing the party package?
> install.packages("party")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/user/AppData/Local/R/win-library/4.4’
(as ‘lib’ is unspecified)
also installing the dependencies ‘TH.data’, ‘libcoin’, ‘matrixStats’, ‘multcomp’, ‘modeltools’, ‘strucchange’, ‘coin’, ‘sandwich’
Warning in install.packages :
the 'wininet' method is deprecated for http:// and https:// URLs
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/TH.data_1.1-3.zip'
Content type 'application/zip' length 8756555 bytes (8.4 MB)
downloaded 8.4 MB
Warning in install.packages :
the 'wininet' method is deprecated for http:// and https:// URLs
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/libcoin_1.0-10.zip'
Content type 'application/zip' length 816726 bytes (797 KB)
downloaded 797 KB
Warning in install.packages :
the 'wininet' method is deprecated for http:// and https:// URLs
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/matrixStats_1.5.0.zip'
Content type 'application/zip' length 541487 bytes (528 KB)
downloaded 528 KB
Warning in install.packages :
the 'wininet' method is deprecated for http:// and https:// URLs
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/multcomp_1.4-28.zip'
Content type 'application/zip' length 737679 bytes (720 KB)
downloaded 720 KB
Warning in install.packages :
the 'wininet' method is deprecated for http:// and https:// URLs
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/modeltools_0.2-23.zip'
Content type 'application/zip' length 225349 bytes (220 KB)
downloaded 220 KB
Warning in install.packages :
the 'wininet' method is deprecated for http:// and https:// URLs
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/strucchange_1.5-4.zip'
Content type 'application/zip' length 960119 bytes (937 KB)
downloaded 937 KB
Warning in install.packages :
the 'wininet' method is deprecated for http:// and https:// URLs
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/coin_1.4-3.zip'
Content type 'application/zip' length 1471400 bytes (1.4 MB)
downloaded 1.4 MB
Warning in install.packages :
the 'wininet' method is deprecated for http:// and https:// URLs
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/sandwich_3.1-1.zip'
Content type 'application/zip' length 1506228 bytes (1.4 MB)
downloaded 1.4 MB
Warning in install.packages :
the 'wininet' method is deprecated for http:// and https:// URLs
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/party_1.3-18.zip'
Content type 'application/zip' length 913530 bytes (892 KB)
downloaded 892 KB
package ‘TH.data’ successfully unpacked and MD5 sums checked
Error in install.packages : ERROR: failed to lock directory ‘C:\Users\user\AppData\Local\R\win-library\4.4’ for modifying
Try removing ‘C:\Users\user\AppData\Local\R\win-library\4.4/00LOCK’
> library(party)
Error in library(party) : there is no package called ‘party’
> library(survival)
>