Closed Hussein-Mahfouz closed 3 years ago
Sorry I just saw that this issue was raised in #145 . I am still getting the error though
Thanks @Hussein-Mahfouz, that is indeed a repeat of #145. As noted there, you should just need to:
remotes::install_github("hypertidy/geodist") # v0.0.6.2 or later
remotes::install_github("atfutures/dodgr") # v0.2.7.24 or later
Please close this issue once you confirm that it works for you.
Thanks for the tip, the code works now.
Some additional info:
I managed to install geodist using remotes::install_github("hypertidy/geodist")
, but trying to install dodgr using remotes::install_github("atfutures/dodgr")
raises the following error:
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [dodgr.so] Error 1
ERROR: compilation failed for package ‘dodgr’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/dodgr’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/dodgr’
Error: Failed to install 'dodgr' from GitHub:
(converted from warning) installation of package ‘/var/folders/rx/8r9pc6jd3dx0vrxnd6lfp0nw0000gn/T//RtmpqpDNwk/file9bab4556fcef/dodgr_0.2.7.024.tar.gz’ had non-zero exit status
I'm not sure what is causing it. However, the code does work now. Perhaps updating geodist was enough.
Good to hear that it all works now. The error you see is caused by the remotes
installation by default installing all dependencies. In this case, some dependencies use fortran and need the gfortran
compiler which you evidently do not have installed. Just install that and you should be good.
Oh I see. Thanks for explaining!
I'm trying to weigh an osm street network using the
weight_streetnet
function. Passing an sf object (fromdodgr_streetnet
) works but passing a silicate object (fromdodgr_streetnet_sc
) raises an error. I think this may be a bug, but i'm not sure. Reprex below:Created on 2020-11-03 by the reprex package (v0.3.0)