the error msg is:> local({pkg <- select.list(sort(.packages(all.available = TRUE)))+ if(nchar(pkg)) library(pkg, character.only=TRUE)}) Error in if (RWinEdtVersion) RWinEdtVersion <- scan(file.path(InstallRoot, : argument is of length zero Error: .onAttach failed in 'attachNamespace' Error: package/namespace load failed for 'RWinEdt'> version_ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status alpha major 2 minor 2.0 year 2005 month 09 day 07 svn rev 35513 language R
ronggui.wong wrote:> the error msg is: > > >>local({pkg <- select.list(sort(.packages(all.available = TRUE))) > > + if(nchar(pkg)) library(pkg, character.only=TRUE)}) > Error in if (RWinEdtVersion) RWinEdtVersion <- scan(file.path(InstallRoot, : > argument is of length zero > Error: .onAttach failed in 'attachNamespace' > Error: package/namespace load failed for 'RWinEdt'Please re-install and load RWinEdt as follows: install.packages("RWinEdt") library(RWinEdt) It works for me with a recent R-2.2.0 alpha. Uwe Ligges> > >>version > > _ > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status alpha > major 2 > minor 2.0 > year 2005 > month 09 > day 07 > svn rev 35513 > language R > > > > ------------------------------------------------------------------------ > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>ronggui.wong wrote: > >> the error msg is: >> >> >>>local({pkg <- select.list(sort(.packages(all.available = TRUE))) >> >> + if(nchar(pkg)) library(pkg, character.only=TRUE)}) >> Error in if (RWinEdtVersion) RWinEdtVersion <- scan(file.path(InstallRoot, : >> argument is of length zero >> Error: .onAttach failed in 'attachNamespace' >> Error: package/namespace load failed for 'RWinEdt' > > >Please re-install and load RWinEdt as follows: > >install.packages("RWinEdt") >library(RWinEdt) > >It works for me with a recent R-2.2.0 alpha.It does Not for me.> install.packages("RWinEdt")--- Please select a CRAN mirror for use in this session --- trying URL 'http://www.lmbe.seu.edu.cn/CRAN/bin/windows/contrib/2.2/RWinEdt_1.7-3.zip' Content type 'application/x-zip-compressed' length 386098 bytes opened URL downloaded 377Kb package 'RWinEdt' successfully unpacked and MD5 sums checked Warning: cannot remove prior installation of package 'RWinEdt' The downloaded packages are in C:\Documents and Settings\Bluewater\Local Settings\Temp\Rtmp23519\downloaded_packages updating HTML package descriptions> library(RWinEdt)Error in library(RWinEdt) : there is no package called 'RWinEdt'>>>version >> >> _ >> platform i386-pc-mingw32 >> arch i386 >> os mingw32 >> system i386, mingw32 >> status alpha >> major 2 >> minor 2.0 >> year 2005 >> month 09 >> day 07 >> svn rev 35513 >> language R >> >> >> >> ------------------------------------------------------------------------ >> >> ______________________________________________ >> R-help at stat.math.ethz.ch mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >= = = = = = = = = = = = = = = = = = = 仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭佒伮 伬侎仯仭 仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭ronggui.wong 仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭042045003 at fudan.edu.cn 仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭2005-09-21
You cannot install over a package that is currently loaded. Quit R and restart without loading the RWinEdt package and try again. Andy> From: ronggui.wong > > >ronggui.wong wrote: > > > >> the error msg is: > >> > >> > >>>local({pkg <- select.list(sort(.packages(all.available = TRUE))) > >> > >> + if(nchar(pkg)) library(pkg, character.only=TRUE)}) > >> Error in if (RWinEdtVersion) RWinEdtVersion <- > scan(file.path(InstallRoot, : > >> argument is of length zero > >> Error: .onAttach failed in 'attachNamespace' > >> Error: package/namespace load failed for 'RWinEdt' > > > > > >Please re-install and load RWinEdt as follows: > > > >install.packages("RWinEdt") > >library(RWinEdt) > > > >It works for me with a recent R-2.2.0 alpha. > It does Not for me. > > > install.packages("RWinEdt") > --- Please select a CRAN mirror for use in this session --- > trying URL > 'http://www.lmbe.seu.edu.cn/CRAN/bin/windows/contrib/2.2/RWinEdt_1.7-3.zip' Content type 'application/x-zip-compressed' length 386098 bytes opened URL downloaded 377Kb package 'RWinEdt' successfully unpacked and MD5 sums checked Warning: cannot remove prior installation of package 'RWinEdt' The downloaded packages are in C:\Documents and Settings\Bluewater\Local Settings\Temp\Rtmp23519\downloaded_packages updating HTML package descriptions> library(RWinEdt)Error in library(RWinEdt) : there is no package called 'RWinEdt'>>>version >> >> _ >> platform i386-pc-mingw32 >> arch i386 >> os mingw32 >> system i386, mingw32 >> status alpha >> major 2 >> minor 2.0 >> year 2005 >> month 09 >> day 07 >> svn rev 35513 >> language R >> >> >> >> ------------------------------------------------------------------------ >> >> ______________________________________________ >> R-help at stat.math.ethz.ch mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html>= = = = = = = = = = = = = = = = = = = ????????? ?? ????????ronggui.wong ????????042045003 at fudan.edu.cn ??????????2005-09-21
> install.packages("RWinEdt")--- Please select a CRAN mirror for use in this session --- trying URL 'http://www.lmbe.seu.edu.cn/CRAN/bin/windows/contrib/2.2/RWinEdt_1.7-3.zip' Content type 'application/x-zip-compressed' length 386098 bytes opened URL downloaded 377Kb package 'RWinEdt' successfully unpacked and MD5 sums checked The downloaded packages are in C:\Documents and Settings\Bluewater\Local Settings\Temp\Rtmp3392\downloaded_packages updating HTML package descriptions> library(RWinEdt)Error in if (RWinEdtVersion) RWinEdtVersion <- scan(file.path(InstallRoot, : argument is of length zero Error: .onAttach failed in 'attachNamespace' Error: package/namespace load failed for 'RWinEdt' ======= 2005-09-21 21:11:47 伳侜佋佢伬伌佇伵佒佇佇伌伒伬仯伜======>You cannot install over a package that is currently loaded. Quit R and >restart without loading the RWinEdt package and try again.have done as you suggest,but still errors.>Andy > >> From: ronggui.wong >> >> >ronggui.wong wrote: >> > >> >> the error msg is: >> >> >> >> >> >>>local({pkg <- select.list(sort(.packages(all.available = TRUE))) >> >> >> >> + if(nchar(pkg)) library(pkg, character.only=TRUE)}) >> >> Error in if (RWinEdtVersion) RWinEdtVersion <- >> scan(file.path(InstallRoot, : >> >> argument is of length zero >> >> Error: .onAttach failed in 'attachNamespace' >> >> Error: package/namespace load failed for 'RWinEdt' >> > >> > >> >Please re-install and load RWinEdt as follows: >> > >> >install.packages("RWinEdt") >> >library(RWinEdt) >> > >> >It works for me with a recent R-2.2.0 alpha. >> It does Not for me. >> >> > install.packages("RWinEdt") >> --- Please select a CRAN mirror for use in this session --- >> trying URL >> 'http://www.lmbe.seu.edu.cn/CRAN/bin/windows/contrib/2.2/RWinE >dt_1.7-3.zip' >Content type 'application/x-zip-compressed' length 386098 bytes >opened URL >downloaded 377Kb > >package 'RWinEdt' successfully unpacked and MD5 sums checked >Warning: cannot remove prior installation of package 'RWinEdt' > >The downloaded packages are in > C:\Documents and Settings\Bluewater\Local >Settings\Temp\Rtmp23519\downloaded_packages >updating HTML package descriptions >> library(RWinEdt) >Error in library(RWinEdt) : there is no package called 'RWinEdt' > >>>>version >>> >>> _ >>> platform i386-pc-mingw32 >>> arch i386 >>> os mingw32 >>> system i386, mingw32 >>> status alpha >>> major 2 >>> minor 2.0 >>> year 2005 >>> month 09 >>> day 07 >>> svn rev 35513 >>> language R >>> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> ______________________________________________ >>> R-help at stat.math.ethz.ch mailing list >>> https://stat.ethz.ch/mailman/listinfo/r-help >>> PLEASE do read the posting guide! http://www.R-project.org/posting-guide. >html >> > >= = = = = = = = = = = = = = = = = = = > > >$B!!!!!!!!!!!!!!!!CW(J >$BNi!*(J > > >$B!!!!!!!!!!!!!!!!(Jronggui.wong >$B!!!!!!!!!!!!!!!!(J042045003 at fudan.edu.cn >$B!!!!!!!!!!!!!!!!!!!!(J2005-09-21 > > > > >------------------------------------------------------------------------------ >Notice: This e-mail message, together with any attachments...{{dropped}}
>So, what version of WinEdt are you using, where is it installed and what >are the corresponding registry entries?Thank you! my winedt's location is not the standard one which cause the error.and i follow the install guide and make it works. the following is the guide. b) Alternative: Manual installation procedure - Unzip the archive and copy the sub-directory PlugIn into directory ....\winedt\plugins (e.g. "c:\program files\winedt team\winedt\plugins\PlugIn") - In your Windows-Explorer double-click on "install.bat". - If you have a personal profile for WinEdt, you might need to copy R.* into this personal profile folder, as well as send2R.edt. - If you are running RGui in single windows style (SDI), the default mode should be unchanged. For RGui in multiple window style (MDI) or if you want to use R-WinEdt with S-PLUS, you can change the R-WinEdt mode permanently(!) using the Menu, e.g.: R -> Set R --mdi mode Note that MDI mode is ONLY supported for english versions of RGui! - To invoke R-WinEdt from startmenu or desktop create a shortcut to WinEdt as follows: "c:\program files\winedt team\winedt\winedt" -C="R-WinEdt" -e=r.ini There is also an icon "R-WinEdt.ico", designed by Erich Neuwirth, available in the archive to prettify the shortcut. - In R use something like (for example in your .Rprofile): options(editor="\"c:/program files/winedt team/winedt/winedt\" -c=\"R-WinEdt-edit\" -e=r.ini -V") options(pager="\"c:/program files/winedt team/winedt/winedt\" -C=\"R-WinEdt\" -e=r.ini -V") Used WinEdt parameters (Remark: There is a difference between -c and -C !): -c="name": New instance of WinEdt called "name" will be started. -C="name": If an instance "name" of WinEdt is already running, it will be used. So you can run WinEdt as LaTeX and R editor at the same time. -e="name": Using "name" as initialization-file. -V : Running in "virgin"-mode