restart a new session in RStudio/R and then try to do updates and install the SegOptim package - use option: Session > Terminate R in RStudio to start a new terminal and then run the installation code above.
Also note that it is not mandatory to update all the dependencies when installing SegOptim. You can opt to skip that part if you wish and do it later.
For SegOptim install.packages will not work because the package is not yet available on CRAN.
I have done it, then I have installed "remotes" package. I'm doing this:
remotes::install_github("joaofgoncalves/SegOptim") Downloading GitHub repo joaofgoncalves/SegOptim@master These packages have more recent versions available. It is recommended to update all of them. Which would you like to update?
1: All 2: CRAN packages only 3: None
I'm not updating any of the packages because I get all sort of errors. So I'm just selecting [3] and I'm getting this error:
Enter one or more numbers, or an empty line to skip updates: 3 √ checking for file 'C:\Users\lsuarezc\AppData\Local\Temp\RtmpCiBaTA\remotes3348662f3e50\joaofgoncalves-SegOptim-505123c/DESCRIPTION' (365ms) - preparing 'SegOptim': (1.4s) √ checking DESCRIPTION meta-information ... - installing the package to process help pages ----------------------------------- ERROR: dependency 'ROCR' is not available for package 'SegOptim' - removing 'C:/Users/lsuarezc/AppData/Local/Temp/RtmpANlWkG/Rinst5b184d215985/SegOptim' In R CMD INSTALL ----------------------------------- ERROR: package installation failed Error: Failed to install 'SegOptim' from GitHub: System command error In addition: Warning messages: 1: In untar2(tarfile, files, list, exdir) : skipping pax global extended headers 2: In untar2(tarfile, files, list, exdir) : skipping pax global extended headers
Any ideas? please?
Angelica