on 03-09-2016 5:49 PM
Using the Expert Analytics module in SAP Predictive Analytics I've encountered a an issue while executing my model. I'm using the builtin R Algorithm R-CNR Tree and when the execution gets to that point it throws an error (which is in the image below).
I used Expert Analytics' option for installing and configuring R.
My SAP PA version is 2.4.0
And the R version installed by PA is 3.2.1
Does anyone knows how to solve this issue?
Hi, have exactly the same problem in the same configuration (PA 2.4, R 3.2.1, default instal) running R CNR Tree. Actually do face slightly different error message as per screenshot attached. Apparently there is a package missing.
I have already tried to to update the packages but with no success. Any idea how I can install the package 'pbkrtest' mentioned in the error message?
Thanks a lot
Radovan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
I had to manually install this one as it is not part of the "default" packages. Matrix was also missing from the default packages.
if you need help to manually install a R package just let me know as there several ways.
After it was ok, but I haven't tested all the R algorights available in Expert.
Regards
Abdel
Hi Radovan,
An SAP note will be released shortly for this issue that has resulted from a recent update to pbkrtest package. The authors of this package have removed support for the version of R required by Expert Analytics (R 3.2.1) and therefore it is not downloaded from within Expert Analytics for first time R installations. More details can be found on their release notes: https://cran.r-project.org/web/packages/pbkrtest/index.html
The workaround is to download 0.4-4 version of pbkrtest package that works with R 3.2.1 and install it manually following the steps below:
install.packages("C:\\temp\\pbkrtest_0.4-4.tar.gz", repos=NULL, type="source").
Note: The double quotes may need to be retyped when copy-pasting if they are converted into rich text characters.
Let us know how you get on.
Regards,
Jayant
Thanks, did the download and run the command with results as follows:
> install.packages("C:\\temp\\pbkrtest_0.4-4.tar.gz", repos=NULL, type="source")
ERROR: dependency 'MASS' is not available for package 'pbkrtest'
* removing 'C:/Users/Public/R-3.2.1/library/pbkrtest'
Warning messages:
1: running command '"C:/Users/Public/R-3.2.1/bin/x64/R" CMD INSTALL -l "C:\Users\Public\R-3.2.1\library" "C:/temp/pbkrtest_0.4-4.tar.gz"' had status 1
2: In install.packages("C:\\temp\\pbkrtest_0.4-4.tar.gz", repos = NULL, :
installation of package ‘C:/temp/pbkrtest_0.4-4.tar.gz’ had non-zero exit status
>
Apparently there was a problem... Now after configuring the tree paramaters I get immediatelly an error as attached...
So it gets even worse now...
Many thanks
Radovan
Hi
so Im back. Trying to replicate on my home machine, I run into problems. The log I get is as follows:
C:\Users\navod>"C:/Users/Public/R-3.2.1/bin/x64/R" CMD INSTALL -l "C:\Users\Public\R-3.2.1\library" "C:\temp\pbkrtest_0.4-4.tar.gz"
* installing *source* package 'pbkrtest' ...
** package 'pbkrtest' successfully unpacked and MD5 sums checked
** R
** data
** inst
** preparing package for lazy loading
Warning: package 'lme4' was built under R version 3.2.3
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'nlme' 3.1-120 is being loaded, but >= 3.1.123 is required
Error : package 'lme4' could not be loaded
ERROR: lazy loading failed for package 'pbkrtest'
* removing 'C:/Users/Public/R-3.2.1/library/pbkrtest'
I have tried to reinstal R from the PA linked distribution, but the resut is the same...
Thanks a lot for advice
Radovan
Hi,
This is weird. lme4 is part of the standard packages installed.
I will update the trouble shooting doc, but my guess is that when you uninstalled R on this machine, you did clean the library directory located in C:/Users/Public/R-3.2.1.
Can you try to run the following command from the R studio:
install.packages("lme4")
This should give you the following output:
trying URL 'http://cran.irsn.fr/bin/windows/contrib/3.2/lme4_1.1-11.zip'
Content type 'application/zip' length 4746682 bytes (4.5 MB)
downloaded 4.5 MB
package ‘lme4’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\i304811\AppData\Local\Temp\Rtmp2xL4SS\downloaded_packages
Then run the following from a DOS prompt:
"C:/Users/Public/R-3.2.1/bin/x64/R" CMD INSTALL -l "C:\Users\Public\R-3.2.1\library" "C:\Users\i304811\AppData\Local\Temp\Rtmp2xL4SS\downloaded_packages\lme4_1.1-11.zip"
Regards
Abdel
Hi,
I did as follows:
R::::::
> install.packages("lme4")
--- Please select a CRAN mirror for use in this session ---
trying URL 'http://cran.irsn.fr/bin/windows/contrib/3.2/lme4_1.1-11.zip'
Content type 'application/zip' length 4747061 bytes (4.5 MB)
downloaded 4.5 MB
package ‘lme4’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\navod\AppData\Local\Temp\Rtmpot7atH\downloaded_packages
>
DOS:::: (had to modify path to the downloaded package)
C:\Users\navod> "C:/Users/Public/R-3.2.1/bin/x64/R" CMD INSTALL -l "C:\Users\Public\R-3.2.1\library" "C:\Users\navod\AppData\Local\Temp\Rtmpot7atH\downloaded_packages\lme4_1.1-11.zip"
package 'lme4' successfully unpacked and MD5 sums checked
R::::
> require ("car")
Loading required package: car
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘pbkrtest’
In addition: Warning message:
package ‘car’ was built under R version 3.2.3
> install.packages("pbkrtest")
Warning message:
package ‘pbkrtest’ is not available (for R version 3.2.1)
DOS::::
C:\Users\navod>"C:/Users/Public/R-3.2.1/bin/x64/R" CMD INSTALL -l "C:\Users\Public\R-3.2.1\library" "C:\temp\pbkrtest_0.4-4.tar.gz"
* installing *source* package 'pbkrtest' ...
** package 'pbkrtest' successfully unpacked and MD5 sums checked
** R
** data
** inst
** preparing package for lazy loading
Warning: package 'lme4' was built under R version 3.2.4
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Warning: package 'lme4' was built under R version 3.2.4
* DONE (pbkrtest)
R::::
> require ("car")
Loading required package: car
Warning message:
package ‘car’ was built under R version 3.2.3
And now the tree works... Tough I have to admit its tricky to really achieve this. I now 2 of my colleagues facign huge issues as well will have to track back whether I can resolve their problems with what I have learned and eventually come back again.
Thanks a lot
Radovan
Hi Jonathan, is your problem resolved thanks to Abdel's tips?
Best regards
Antoine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think you have a little glitch in your R installation.
I recently found out that with a fresh install of PA 2.4 and using the "Install R" link from the Expert menu, was not properly working.
I also found this article with your error message:
http://stackoverflow.com/questions/23958161/object-not-found-error-when-loading-party-package-i... which makes me think that the CRAN that you used for the install did not work properly.
can you try to run the following command from the R prompt:
update.packages(checkBuilt=TRUE)
I also had to manually install some packages manually required by the Expert part.
Let me know if you need some help for this.
@bdel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It may work well but that depends on the CRAN you are using and where you are located.
I tried it many times from the office (4 floor above you) and it never worked on a clean desktop (uninstalled every PA & R installs).
I think we should build a "Troubleshooting your R install guide" with some of the commonly seen issues.
Regards
@bdel
Hi, it is difficult to judge from the error message. Is it an option you can share the Expert Analytics file?
Thanks & regards
Antoine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.