Installation

125 views
Skip to first unread message

Karim Mehour

unread,
May 17, 2021, 8:45:51 AM5/17/21
to SegOptim user group

Hello, fairly new to R.
I'm using RStudio (trying to install SegOptim using
  • remotes::install_github("joaofgoncalves/SegOptim")
all seems to go well, until it starts running the "R CMD build"
then i get this :
Capture.PNG

R studio us up to date, and i tried it with two versions of R, 4.0.5 and 3.6.3.
Does anyone have suggestions ?

Karim

Ricardo Martinez

unread,
May 17, 2021, 10:54:22 AM5/17/21
to SegOptim user group
I cannot see the image properly, but check if your package remotes is installed. I had that problem first but easy to solve.  Nevertheless, looks like there are packages not installed. If you are using 2 different versions of R, make sure that you have the same packages available for each version because when you switch between them , they are not compatible. 

João Gonçalves

unread,
May 17, 2021, 11:09:48 AM5/17/21
to SegOptim user group
Hello,

Thanks both for your feedback on SegOptim.
Karim seems like an issue with package NLMR. First, make sure you have the devtools and remotes packages installed in R. You will need build tools for this. If you are in Windows check the tools installer here and follow the installation steps: https://cran.r-project.org/bin/windows/Rtools/

Then run the NLMR package installation by running the following line of code:
remotes::install_github("ropensci/NLMR")

Now, try to install the SegOptim package by using the experimental version (better, more updated), run:
remotes::install_github("joaofgoncalves/SegOptim", ref="experimental")

Hope it helps. Let me know of any issue following issue.

Cheers
João

Karim Mehour

unread,
May 18, 2021, 8:01:42 AM5/18/21
to SegOptim user group
Thanks a lot everyone, installing Rtools40 and NLMR did it for me.
I really appreciate the help and the quick response !

REGINALDO ARTHUR - TUTUBIO

unread,
May 17, 2022, 11:24:10 PM5/17/22
to SegOptim user group
In the Rstudio script it still has the same error of not being able to install the NLMR and randomforest packages, because it says they are not available for version 4.0.2.
But I did the recommended installation of Rtools at (https://cran.r-project.org/bin/windows/Rtools/rtools40.html)
Do you know what I can do because without these two packages I can't use SegOptim...

thanks... 

instalacao.PNG

Zach Strasberg

unread,
Apr 19, 2023, 1:00:03 PM4/19/23
to SegOptim user group
Hi! I am also having a similar problem. I am able to install the NLMR package, but am receiving the following error when trying to install SegOptim. I have both the remotes and devtools packages installed.



> remotes::install_github("joaofgoncalves/SegOptim", ref = "experimental") Downloading GitHub repo joaofgoncalves/SegOptim@experimental Skipping 2 packages not available: unbalanced, clusterCrit ── R CMD build ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── checking for file 'C:\Users\zachs\AppData\Local\Temp\RtmpAfEUvb\remotes780861443022\joaofgoncalves-SegOptim-c81250a/DESCRIPTION' ... preparing 'SegOptim': (346ms) checking DESCRIPTION meta-information ... installing the package to process help pages ----------------------------------- ERROR: dependencies 'clusterCrit', 'unbalanced' are not available for package 'SegOptim' ─ removing 'C:/Users/zachs/AppData/Local/Temp/RtmpKOEaan/Rinst73ac76735da3/SegOptim' ----------------------------------- ERROR: package installation failed Error: Failed to install 'SegOptim' from GitHub: ! System command 'Rcmd.exe' failed

I

Zach Strasberg

unread,
Apr 19, 2023, 1:00:55 PM4/19/23
to SegOptim user group
For more info, I just updated to R 4.2.3 (the most current version), and am still experiencing the same issues. 

João F Gonçalves

unread,
Apr 19, 2023, 5:51:55 PM4/19/23
to segoptim-...@googlegroups.com

Hi Zach

Seems like an issue with two packages (clusterCrit and unbalanced) that were recently removed from CRAN (due to the lack of maintenance). So you need to compile and install them from GitHub.

Try these two lines of code for doing that, reinstall SegOptim and let me know how it goes:

remotes::install_github("cran/clusterCrit")

remotes::install_github("dalpozz/unbalanced")



Cheers,
João
- - -


--
You received this message because you are subscribed to the Google Groups "SegOptim user group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to segoptim-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/segoptim-user-group/c424a3ac-f2b4-4a8a-98f2-ab22b0a4931fn%40googlegroups.com.

Zach Strasberg

unread,
Apr 20, 2023, 12:05:25 PM4/20/23
to SegOptim user group
Hi  João,

That appears to have worked. I have not used any of the functions yet, but the SegOptim package was able to be installed and loaded into my RStudio environment. Thanks for your help and speedy feedback!

Best,

Zach
Reply all
Reply to author
Forward
0 new messages