R Reports an Error Installing a Package

Asked 2 years ago, Updated 2 years ago, 228 views

When performing the Steel-Dwass test on Rx64 4.1.2
"Package" → "Install Package" → "Japan(Tokyo)" → "NSM3"
I will follow the instructions in , but after selecting Japan, the following message appears and I cannot select NSM3.

 utils::menuInstallPkgs()
 --- Select a mirror site for the CRAN for use in this session --- 
 Warning: enable to access index for repository https://cran.ism.ac.jp/src/contrib:
   Unable to open URL 'https://cran.ism.ac.jp/src/contrib/PACKAGES' 
 Error in install.packages(lib=.libPaths()[1L], dependencies=NA, type=type): 
   Argument "pkgs" missing and no default value omitted

I've reviewed the firewall settings, but I can't go ahead because the settings are not working well.

Rversion 4.1.2 (2021-11-01) -- "Bird Hippie"
Copyright(C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
>utils::menuInstallPkgs()
 --- Select a mirror site for the CRAN for use in this session --- 
 Warning: enable to access index for repository https://cran.ism.ac.jp/src/contrib:
   Unable to open URL 'https://cran.ism.ac.jp/src/contrib/PACKAGES' 
 Error in install.packages(lib=.libPaths()[1L], dependencies=NA, type=type): 
   Argument "pkgs" missing and no default value omitted 
> 
# Created by reference to the following site
# # https://jojoshin.hatenablog.com/entry/2016/05/29/222528
# # https://biolab.sakura.ne.jp/steel-dwass.html
# Preinstalling NSM3 Packages
# Package → Install Package → Japan(Tokyo) → NSM3
# If you do it once, you don't have to do it next time.

rm(list=ls(all=TRUE))
library (NSM3)
# Loading Data
# Rewrite the "Kruskal-Wallis_data.csv" part of the line below, depending on the file name you entered.
data<-read.csv("Kruskal-Wallis_data.csv", header=T)
data
summary(data)

# Steel-Dwass Method Multiple Comparisons
# It's a nonparametric test that multiple comparisons of more than three groups.
# It may take several minutes for the results to appear.
# If you change the contents of the first line of the file where you entered the data, rewrite "Y" and "X" in the bottom line accordingly.
# If you see an error, set "method="Monte Carlo" in the line below to "method="Asymptotic"
XX<-as.factor(data$X)
pSDCFlig(data$Y,XX,method="Asymptotic")

r

2022-09-30 22:00

1 Answers

Why don't you try the CRAN mirror site with "0-Cloud"?
(I tried it, but I was able to install it.)


2022-09-30 22:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.