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

Error linking GRASS on Arch Linux #26

Closed
pat-s opened this issue Nov 11, 2019 · 4 comments
Closed

Error linking GRASS on Arch Linux #26

pat-s opened this issue Nov 11, 2019 · 4 comments

Comments

@pat-s
Copy link
Member

pat-s commented Nov 11, 2019

On Arch Linux with Grass 7.8 installed from AUR I get

link2GI::linkGRASS7(streets)
Error in gregexpr(pattern = "\"", root_dir)[[1]] : 
  subscript out of bounds

Same for

link2GI::searchGRASSX()
Error in gregexpr(pattern = "\"", root_dir)[[1]] : 
  subscript out of bounds

both with CRAN and dev version.

Even when specifying the full path I get the error

 link2GI::linkGRASS7(location = "/opt/grass/bin")
Error in gregexpr(pattern = "\"", root_dir)[[1]] : 
  subscript out of bounds
@gisma
Copy link
Member

gisma commented Nov 12, 2019

I was struggling with this a few weeks ago when I switched occasionally to Manjaro. Thought that I have fixed it thanks for reporting that I did not. The problem is that the GRASS people changed their initialisation script naming variables different and using other libs. Asap I will dive in again .

@gisma
Copy link
Member

gisma commented Nov 12, 2019

quite a sloppiness and inconsistency of mine I did the recent commits in the master branch...
Please check the master branch on github. If I do so I get for Manjaro Arch:
After solving #27 Iwill push it asap on CRAN either.

 link2GI::searchGRASSX()
     instDir version installation_type
1 /opt/grass   7.8.0           grass78

@pat-s
Copy link
Member Author

pat-s commented Nov 15, 2019

Thanks. This works now for, but link2GI::linkGRASS7() does not yet

searchGRASSX()
# A tibble: 1 x 3
  instDir    version installation_type
  <chr>      <chr>   <chr>            
1 /opt/grass 7.8.1   grass78    
      
link2GI::linkGRASS7()
Error in rgrass7::execGRASS("g.proj", flags = c("c", "quiet"), proj4 = proj4) : 
  object 'proj4' not found

@gisma gisma closed this as completed in 1c4a3cc Nov 16, 2019
@gisma gisma reopened this Nov 16, 2019
@gisma
Copy link
Member

gisma commented Nov 16, 2019

still needs some checks

@gisma gisma closed this as completed Nov 22, 2019
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