简体   繁体   中英

Symbolic Matrix Computation in R

I need to do symbolic computation with matrices in R, preferably using the rSymPy package. I am running everything on Mac OS. There is a problem with loading the rJava package, however. I get the following error: Error: package or namespace load failed for 'rJava': .onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so': dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so, 6): Library not loaded: /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so Reason: image not found

I have read through Problems when trying to load a package in R due to rJava and Unable to load rJava on R , as well as other similar questions. This is very frustrating - any help would be appreciated!

My end goal here is to perform matrix reduction and manipulation in R with variables (ie symbolic matrix computations). If there are any other suggestions on how to do this in R, please let me know.

首先要尝试的是从终端运行以下命令:

R CMD javareconf

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM