Message-ID: <b17aabfb-24cc-b916-f91c-9de0a9aa791f@gmail.com>
Date: 2017-11-13T10:59:00Z
From: Duncan Murdoch
Subject: package or namespace load failed for ‘ks’
In-Reply-To: <E802E5D0-C117-4641-934F-2D9D0E646D9B@icloud.com>
On 13/11/2017 4:20 AM, ??? wrote:
> Hi?Friends?
> I have installed ks package successfully using R version 3.4.2 on Mac 10.12.6. But when I library it , I have the following problem.
>
> error: package or namespace load failed for ?ks?:
> onLoad fails when'rgl'is calculated in loadNamespace ():
> Call: dyn.load(file, DLLpath = DLLpath, ...)
> Error: unable to load shared target object:?/Users/sanyu/Library/R/3.4/library/rgl/libs/rgl.so??:
> dlopen(/Users/sanyu/Library/R/3.4/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib
> Referenced from: /Users/sanyu/Library/R/3.4/library/rgl/libs/rgl.so
> Reason: image not found
> This is the first time I write emails to foreign friends , I hope I can get this helps.
> Wang
The problem here is with the rgl package. It requires that you have
XQuartz installed. That's not an R package, it's available from
xquartz.org.
Duncan Murdoch