https://hackmd.io/@drmowinckels/capro-oslomet-2023/edit
by writing in this document we can have a collaborative document throughout the course.
usethis::use_course("rstats-wtf/wtf-explore-libraries")
library(usethis)
# saves project on desktop by default for most users
use_course("capro-uio/wtf-explore-renv")
library(usethis)
# saves project on desktop by default for most users
use_course("rstats-wtf/wtf-fix-paths")
Despite the long path support in Windows [since Win10 1607 from 2016] and efforts like this [changes to R outlined in the post], it will take “at least” very long before one could reliably rely on paths longer than 260 characters on Windows.
https://blog.r-project.org/2023/03/07/path-length-limit-on-windows/
IIUC the changes to R to support long paths on Windows were release with R 4.3.
The corresponding RStudio issue (if that's the IDE used in this case) is still open.
Other developers also suggest that this might also more likley occur on symlinked institutional paths, where the location seems to not be that long, but actually is a pointer to a path that truly is long.
We briefly discussed the renv cellar to get the .tar.gz
files for the package you want to install and put that in the renv/cellar/
folder.
It was also pointed out that of course, some times you'd need to also resolve the dependencies of that package to get it working.
My package tsdrtools should be of help, but is not well tested on Windows.
It should in any case at least get all the package dependencies for you.
But beware, for packages with many dependencies this is quite slow!
We just got Posit Package Manager (still abbreviated to RSPM: RStudio Package Manager), and this can be a great thing to try and resolve your dependencies and lock versioning.
We have a working document trying to get down information as we test it:
https://share.educloud.no/s/nm4wMsYqk9YjzTr
The best tool for this, in my opinion, is the forcats package:
https://forcats.tidyverse.org/
It has lots of great funcitonality for most (if not all) your categorical data handling needs!
Day 3 - 2023.12.12
Course materials: https://carpentries-incubator.github.io/r-tidyverse-4-datasets/
install.packages(c("tidyverse", "palmerpenguins"))
tidyselect tutorial
https://tidyselect.r-lib.org/articles/tidyselect.html
skrive / lese excel filer fra R
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing