Skip to content

Commit

Permalink
Directly describe the packages file and add a note on the final lin…
Browse files Browse the repository at this point in the history
…e needing to be empty
  • Loading branch information
coatless committed Jan 13, 2024
1 parent ab91546 commit 6a00c6f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,18 @@ Need a [package from CRAN](https://r-lib.github.io/pkgdepends/reference/pkg_refs
```
pkgname
```

So, the example `packages` file contains three lines where 2 are dedicate to install a package on GitHub as well as CRAN and the last line is an empty line:

```
coatless-rpkg/drawr
visualize
```

**Note:** Not leaving an empty line will result in a warning message during the "Retrieve packages from `./packages` file" step.

```
Warning message:
In readLines("./packages") : incomplete final line found on './packages'
```
2 changes: 1 addition & 1 deletion packages
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
coatless-rpkg/drawr
ggplot2
visualize

0 comments on commit 6a00c6f

Please sign in to comment.