英文:
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 ?.libPaths
help 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. underDocuments/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 ?.libPaths
help 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. underDocuments/r_course/lab01/
and so on.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论