Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated for newer versions of R? #2

Open
sheyn-uw opened this issue Jul 12, 2022 · 5 comments
Open

Updated for newer versions of R? #2

sheyn-uw opened this issue Jul 12, 2022 · 5 comments

Comments

@sheyn-uw
Copy link

sheyn-uw commented Jul 12, 2022

Hi, I am trying to use ggsegDestrieux, but I keep getting the error that it is not supported by my version of R:

    Warning in install.packages :
      package ‘ggsegDestrieux’ 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

However, I am running one of the most recent R versions:
```

R.version
_
platform x86_64-apple-darwin17.0
arch x86_64
os darwin17.0
system x86_64, darwin17.0
status
major 4
minor 1.3
year 2022
month 03
day 10
svn rev 81868
language R
version.string R version 4.1.3 (2022-03-10)
nickname One Push-Up


 is this package not compatible with the later versions? Or do I need to revert to an earlier version for this package to run?

Thanks!
@drmowinckels
Copy link
Contributor

Hi.

Please read the install instructions on the first page. This package is not on CRAN and the install instructions need to be followed to install it.

https://github.com/ggseg/ggsegDesterieux

@sheyn-uw
Copy link
Author

Appreciate the help. Of course I read through your instructions and I am implementing in the exact way instructed. My issue is that upon installing, it outputs that ggsegDestrieux is not available for the most recent version of R. Here is my console output, for reference.

`

library(ggseg)
library(ggseg3d)
library(ggplot2)
library(dplyr)

Enable this universe

options(repos = c(

Install some packages

install.packages('ggsegDestrieux')
Installing package into '/Users/sheyn/Library/R/x86_64/4.1/library'
(as 'lib' is unspecified)
Warning in install.packages :
package 'ggsegDestrieux' 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

library(ggsegDestrieux)
Error in library(ggsegDestrieux) :
there is no package called 'ggsegDestrieux'

R.version
_
platform x86_64-apple-darwin17.0
arch x86_64
os darwin17.0
system x86_64, darwin17.0
status
major 4
minor 1.3
year 2022
month 03
day 10
svn rev 81868
language R
version.string R version 4.1.3 (2022-03-10)
nickname One Push-Up
`

@drmowinckels
Copy link
Contributor

I can see its trying to install from CRAN, which is what the error message is saying. and its not on CRAN so its not possible. I dont know why setting the repos isnt working for you.

I'm on R 4.2.0 so R version is not the issue.

Try

install.packages('ggsegDesterieux', 
    repos = "https://ggseg.r-universe.dev")

@sheyn-uw
Copy link
Author

Ah, I see what the issue is. I ran the install packages/repos command you sent above directly, and it worked. The issue I identified was that the atlas is the 'Destrieux' atlas, but the ggseg package has Destrieux misspelled ('ggsegDesterieux'), which I was typing in manually using the real atlas name.

Sorry for the confusion, I just had the spellings mixed up. Thanks for your help!

@drmowinckels
Copy link
Contributor

I should be apologising, really. What an amazing feat I have done by mispelling Destrieux... I'll get that fixed at some point, though I'm not going to rush it. It'll mean changing both the repo, package and data names, so its a bit of a task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants