Installing SepOptim

26 views
Skip to first unread message

lasu...@gmail.com

unread,
Jun 4, 2020, 10:17:29 PM6/4/20
to SegOptim user group
Hi all,

I'm trying to install the package and I keep getting errors. Previous recommendations by Joao,

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

lasu...@gmail.com

unread,
Jun 5, 2020, 4:19:05 AM6/5/20
to SegOptim user group
Hi all,

I restarted everything and I updated R and then install the package as per instructions ... all good now :) 

Thank you!

João Gonçalves

unread,
Jun 5, 2020, 9:42:20 AM6/5/20
to SegOptim user group
Hi Angelica,

Thanks for the feedback. The previous issue was related to the lack of some package dependencies. In that case package ROCR needed to be installed first before compiling SegOptim.

Let me know if SegOptim works well for your case study. Because I am currently re-designing some parts of the package, it is very useful to have feedback from users to correct bugs and add new features.


Cheers
João
Reply all
Reply to author
Forward
0 new messages