james-cole / brainageR

Software for generating a brain-predicted age value, using Gaussian Processes regression, implemented in R
GNU Lesser General Public License v3.0
71 stars 25 forks source link

readlink on Mac not working on v2.1 #2

Closed james-cole closed 2 years ago

james-cole commented 4 years ago

Turns out readlink on Mac doesn't have a -f option. There are several work-arounds for this for Mac users (it's not an issue for 'nix). The most simple is to edit the brainageR script and use 'realpath' instead of 'readlink'. Alternatively you can install the GNU coreutils package and get the correct version of readlink for your system.

rogiedodgie commented 2 years ago

Thanks for the quick fix, confirmed working on a fresh install, much appreciated.

biomed27 commented 10 months ago

Good Afternoon, Does "realpath" also work on Windows machine? Thanks!

james-cole commented 10 months ago

Hi - sorry I'm not actually sure about realpath on Windows. It would depend on which terminal environment you're using. If you can provide more details about your set up I can try to help.

biomed27 commented 10 months ago

Good Morning James,

I hope this email finds you well. Thank you for getting back to me! I was actually able to set the code up on my Ubuntu computer and have everything working in place of using my Windows.

Best, Natalie

On Tue, Aug 29, 2023 at 4:53 AM James Cole @.***> wrote:

Hi - sorry I'm not actually sure about realpath on Windows. It would depend on which terminal environment you're using. If you can provide more details about your set up I can try to help.

— Reply to this email directly, view it on GitHub https://github.com/james-cole/brainageR/issues/2#issuecomment-1697033771, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHB6JOSARHN5DCGULJQG2STXXWUZ7ANCNFSM4KFISSRA . You are receiving this because you commented.Message ID: @.***>

james-cole commented 10 months ago

Great!