我安装的软件包文件夹没有显示在文档中。

huangapple go评论85阅读模式
英文:

The folder of the package I install doesn't show up in the doocuments

问题

这是我的作业的一部分。我们被要求安装tm数据挖掘包。然后,我的教授告诉我们要前往 "C:\Users\user_name\Documents\R\win-library\4.1\tm",创建一个名为 "texts" 的文件夹,并将我们在作业中下载的文档放在那里。

这是他的指示。

但是,当我前往我的win_library时,我没有找到 "tm" 文件夹。我已经成功在我的R项目中安装了tm包,并使用library调用它。

这是一个错误吗?我应该怎么做?非常感谢。

英文:

So I am doing it as part of my homework. We are asked to install the tm package for data mining. Then, my professor told us to go to "C:\Users\user_name\Documents\R\win-library\4.1\tm", create a file called "texts", and put the documents we download as part of the homework there

This is his instruction

我安装的软件包文件夹没有显示在文档中。

However, when I go to my own win_library, I found no "tm" folder. I have already successfully installed the tm package in my R project and call it using library.

我安装的软件包文件夹没有显示在文档中。

Is this an error? What should I do? Thank you so much.

答案1

得分: 1

In recent versions of R, the location of the personal library was moved from Documents to c:\Users\user_name\AppData\Local\R\win-library\.

You can see which paths are used with:

.libPaths()

You can also change the library path temporarily for your session or permanently using libPaths() or environment variables. Details are explained in the ?.libPathshelp page. I would not recommend to do so if you don't know exactly why.

Two additional notes:

  • the new location is in a system folder that is normally hidden. It can be made visible by changing an explorer option.
  • I don't understand why your professor recommends to save downloaded data into the win_library folder. The folder is "sort of temporary" and in some circumstances it can be a good idea to remove it.
  • A good place to store data is indeed under Documents. I recommend my students to store their files there, e.g. under Documents/r_course/lab01/ and so on.
英文:

In recent versions of R, the location of the personal library was moved from Documents to c:\Users\user_name\AppData\Local\R\win-library\.

You can see which paths are used with:

.libPaths()

You can also change the library path temporarily for your session or permanently using libPaths() or environment variables. Details are explained in the ?.libPathshelp page. I would not recommend to do so if you don't know exactly why.

Two additional notes:

  • the new location is in a system folder that is normally hidden. It can be made visible by changing an explorer option.
  • I don't understand why your professor recommends to save downloaded data into the win_library folder. The folder is "sort of temporary" and in some circumstances it can be a good idea to remove it.
  • A good place to store data is indeed under Documents. I recommend my students to store their files there, e.g. under Documents/r_course/lab01/ and so on.

huangapple
  • 本文由 发表于 2023年3月7日 12:08:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/75657961.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定