Gina
Gina

Reputation: 49

Does anyone know where else to download the package clustsig? It can't handle my version of R

I get this message, but can't find the package anywere else

Warning in install.packages : package ‘clustsig’ is not available for this version of R

A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

Upvotes: 1

Views: 862

Answers (1)

jared_mamrot
jared_mamrot

Reputation: 26695

The package is no longer maintained but the source code is on github and looks 'fine' to me so it should still run as expected using current versions of R (although there are lots of "TODO" / "UPDATE THIS" / commented-out code chunks throughout, so it was clearly under development before being 'abandoned').

If you want to install it, you can use the devtools package to download and install it directly from the github CRAN mirror:

library(devtools)
#> Loading required package: usethis
install_github("cran/clustsig")
#> Downloading GitHub repo cran/clustsig@HEAD
#> ✔  checking for file ‘/private/var/folders/gf/3p_ynkts411bs238rtw3y0b40000gn/T/RtmpriR9AY/remotes3ce54af7cf6/cran-clustsig-88fbd6a/DESCRIPTION’ ...
#> ─  preparing ‘clustsig’:
#> ✔  checking DESCRIPTION meta-information
#> ─  checking for LF line-endings in source and make files and shell scripts
#> ─  checking for empty or unneeded directories
#> ─  building ‘clustsig_1.1.tar.gz’
#>    
#> * installing *source* package ‘clustsig’ ...
#> ** using staged installation
#> ** R
#> ** byte-compile and prepare package for lazy loading
#> ** help
#> *** installing help indices
#> ** building package indices
#> ** testing if installed package can be loaded from temporary location
#> ** testing if installed package can be loaded from final location
#> ** testing if installed package keeps a record of temporary installation path
#> * DONE (clustsig)

library(clustsig)

data("USArrests")
usarrests<-USArrests[,c(1,2,4)]
rownames(usarrests)<-state.abb
# Run simprof on the data
res <- simprof(data=usarrests, 
               method.distance="braycurtis")
#> Warning: This version of the Bray-Curtis index does not use standardization.
#> Warning: To use the standardized version, use "actual-braycurtis".
#> Warning: See the help documentation for more information.
# Graph the result
simprof.plot(res)

#> 'dendrogram' with 2 branches and 50 members total, at height 42.16072

Created on 2022-08-18 by the reprex package (v2.0.1)

Upvotes: 0

Related Questions