R Software in text analysis installation package Rjava and Rwordseg fool installation method four parts

Source: Internet
Author: User

These two days, because to do a text analysis of the content, so search for a day R language can do text analysis of the loading package, but in the process of installing the package is really abused times, always installed unsuccessful. Write a blog dedicated to the whole history of the heart of the carefree release.

--------------------------------------------------------------------------------back to the chase, Gorgeous Split-line-----------------------------------------------------------------------------

First: before installing these two packages, you need to install the JRE (Java Runtime environment) Link Address: Http://rj.baidu.com/soft/detail/10463.html?ald (choose Normal download, or more next software).

Second: The first step to download the software installed successfully, be sure to set the environment variables, remember must be set up, or can not go on. Set Square See: Http://jingyan.baidu.com/article/9f63fb91d87fb0c8400f0e93.html (This is the way to set up the Win7)

Third: Install the Rjava package, install.packages (' Rjava '). If you follow the first step, the second step, then this step will be installed successfully.

Fourth: Install the RWORDSEG package, install this package I am a big bother.

To the episode, if you didn't follow the 1, 2, and 3 steps above, you might be in: Install.packages ("rwordseg", repos = "http://R-Forge.R-project.org", type = "Source" )

There is a problem with the actual collection. The error code is as follows:

>install.packages (' rwordseg ', repos = "http://R-Forge.R-project.org")Installing the source package ' rwordseg ' trying URL ' http://R-Forge.R-project.org/src/contrib/Rwordseg_0.2-1.tar.gz ' Content type ' application/x-gzip ' length 5445754 bytes (5.2 MB) downloaded 5.2 mb* installing *source* package ' rwordseg '. .. * * r** demo** inst** preparing package for lazy loading** help*** Installing help indices** Building Package indices** tes  Ting if installed package can be loaded*** arch-i386 January 13, 2016 9:15:37 am org.ansj.util.MyStaticValue <clinit> Warning: Not find library.properties in classpath with it by default! January 13, 2016 9:15:37 am Org.ansj.library.UserDefineLibrary Loa Dlibrary Warning: init userlibrary waring:library/default.dic because:not Find, file or can not-read! January 13, 2016 9:1 5:37 am org.ansj.library.UserDefineLibrary initambiguitylibrary Warning: init ambiguity waring:library/ambiguity.dic Because:not find that file or can not to read! January 13, 2016 9:15:37 am org.ansj.library.UserDefineLibrary loadfile info: INI T user userlibrary OK path is:c:\proGram Files\r\r-3.2.3\library\rwordseg\config\userdic January 13, 2016 9:15:38 am org.ansj.library.InitDictionary init info: Init core library OK use time:1111 January 13, 2016 9:15:39 am org.ansj.library.NgramLibrary <clinit> info: init ngram OK us  E time:975*** arch-x64error:. OnLoad failed in Loadnamespace () for ' Rjava ', Details:call:inDL (x, as.logical (local),  As.logical (now), ...) Error: Unable to load shared target object ' C:/Program Files/r/r-3.2.3/library/rjava/libs/x64/rjava.dll ':: LoadLibrary failure:%1 is not valid Win32 Application. Error:package ' Rjava ' could not be loaded error: Load failure stop execution error:loading failed for ' x64 ' * removing ' c:/program files/r/r-3.2  .3/library/rwordseg ' * Restoring previous ' C:/Program files/r/r-3.2.3/library/rwordseg ' Warning in Install.packages: Running command ' "C:/PROGRA~1/R/R-32~1.3/BIN/I386/R" CMD install-l "C:\Program files\r\r-3.2.3\library" C:\Users\ Amandage\appdata\local\temp\rtmpcxqkve/downloaded_packages/rwordseg_0.2-1.tar.gz ' had status 1Warning in Install.packages:installation of Package ' rwordseg ' had Non-zero exit statusthe downloaded source packages is in ' C:\USERS\*****\APPDATA\LOCAL\TEMP\RTMPC Xqkve\downloaded_packages '

Bloggers are like this, has been installed all the time there is a problem on the tangle, until the end is still unresolved.

But, dream still have to have, in case the realization of it.

We will install the package in a different way, instead of using the Install.packages () installation in the R software, using the local load method.

Back to the point: so how to load locally? (1) Go to https://r-forge.r-project.org/R/?group_id=1054 this website to download RWORDSEG package

As shown, WinDOS download the red circle inside the one can be.

So how do I load it locally after downloading it?

The so-called local loading is on your computer R loaded in, first open your computer to get R is not Rstudio, is r in the menu bar above

This interface is familiar to you, Haha, click on the package, and then select

Choose the bag you're under, and wait for it to be done.

---------------------------------------------------------I'm a split line------------------------------------

Note: Because I am not familiar with the operating system, the installation package will be downloaded as Linux.

So it can also lead to a series of problems. But fortunately, everything is settled.

The above installation method is absolutely fool-like, if the steps are also installed bad, then I want to quietly .....

R Software in text analysis installation package Rjava and Rwordseg fool installation method four parts

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.