I met this error when I used a package in R to load the data, in this package, pakcage < Code> rJava was used.
Error every time I run a function
error in LS (envir = envir, all.names = private): invalid 'This package can be either Without proving the problem, my computer has some environmental problems. When I debug did, I found out that before this process ls (envir = envir, all.names = private)
variable envir
Is NULL
, which should be some value, but do not tap me.
After some tests, I solve the problem every time by setting up rjava
and besides, only when the error occurs, I install 'Jaza' , This will work if I am already established, then this will not work. Therefore, I think that setting up of 'Jaza' (or possibly installing packages) will change some environmental variables.
Either Java 7 and Java 8, which includes JDK or JR, are not working. And for R, I am using 3.1.3 R and all packages are up-to-date.
There is some information that I think can be useful for troubleshooting.
To install the package, add jvm.dll to the Windows Environmental Path: "Path"
and I did this.
My Satranukrm is shown below:
R version 3.1.3 (03/09/2015) platforms: x86_64-W64-mingw32 / 64 (64-bit) running under (build 7601) Windows 7 x64 with Service Pack 1 location: [1] LC_COLLATE = Danish_Denmark.1252 LC_CTYPE = Danish_Denmark.1252 LC_MONETARY = Danish_Denmark.1252 LC_NUMERIC = C [5] LC_TIME = Danish_Denmark.1252 attached base packages [1] grid statistics graphics grDevices utils dataset methods based on other enclosed packages: [1] rgdal_0.9 -1 Fild_8k2-l Spam_lk0-l Rastr_2k3-33 sp_1.0-17 ecomsUDG.Raccess_2.2- 6 [7] downscale R_0.5-2 maps_2.3-9 downscale r Jawa_0k0- 2 rJava_0.9-6 gWidgetsRGtk2_0.0-83 cairoDevice_2.22 [13] RGtk2_2.20.31 gWidgets_0.0-54 R.utils_2.0.0 R.oo_1.19.0 R.methodsS3_1.7.0 through a namespace loaded (not attached): [1] abind_1.4-3 bitops_1.0-6 boot_1.3-15 CircStats_0.2-4 colorspace_1.2-6 dtw_1.17-1 lattice_0.20-30 MASS_7.3- 39 [9] munsell_0.4.2 plyr_1 .8.1 proxy_0.4-14 Rcpp_0.11.5 RCurl_1.95-4.5 scales_0.2.4 tools_3.1.3 verification_1.41
If you can provide any help Thanks for that.
Have you completely solved your problem? I had a similar problem a few days ago, solved it and wanted to share it with the community. In fact, call those wrapper functions (in my case, RBBG package), in RJVA functions there was a log file in your user folder under C drive, you can remove those log files because it helps you to avoid error messages. Will meet
In my case, I need to remove org.findata.blpwrapper.0 files created by blpjavaapi0.log.0 and Rbbg package.
No comments:
Post a Comment