The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The fromhere
package helps construct relative file paths
from specific project roots.
fromhere
provides two main methods for generating file
paths relative to the root of various project types:
Using functions:
from_rproj("path/to/file")
Using strings to specify file paths, allowing a more programmatic approach to building paths.
Using $
for autocompletion:
from_rproj$path$to$file
This method allows for a more interactive approach to specifying file
paths, where the autocompletion is relative to the from_*
folder.
This initial release supports file paths from many common project types:
from_wd()
: For paths relative to the working
directory.from_here()
: For paths relative to the {here}
package’s
automatic project root.from_rproj()
: For R project directories.from_r_package()
: For R package directories.from_remake()
: For remake project directories.from_drake()
: For drake project directories.from_targets()
: For targets project directories.from_pkgdown()
: For pkgdown project directories.from_renv()
: For renv project directories.from_projectile()
: For Projectile project
directories.from_quarto()
: For Quarto project directories.from_git()
: For Git repository root directories.from_svn()
: For SVN repository root directories.from_vcs()
: For generic version control root
directories (Git or SVN).from_testthat()
: For testthat directories.The included vignette explains the nuances of organising files and specifying relative file paths to produce portable and reproducible projects.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.