Coder Social home page Coder Social logo

ludvigolsen / insertimage Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 1.56 MB

RStudio addin for inserting an image into Markdown with file chooser and copy the image file to the project.

License: Other

R 100.00%
rstudio rstudio-addin addin rstats r image markdown rmarkdown

insertimage's Introduction

insertImage

R package: Insert image from file chooser into Markdown. Copy image to project. Addin for RStudio.

Inserts image code with alternative text specified by user in console.

If image file is not in the project (working directory or subdirectory) the user can copy the image file to the project. An img/ directory is created in the working directory, unless the document is in vignettes/ directory in which case the user can choose to copy to this directory instead.

Note: On Linux and possibly other OSes, if you are not asked whether to move an image that is not already in your working directory (or sub directory) to your working directory, it might help to set the working directory to the folder in which your active document exists.

By Ludvig R. Olsen, Cognitive Science, Aarhus University. Started in Feb. 2017

Contact at: [email protected]

Main functions:

  • insertImage

Installation

Development version:

install.packages("devtools")

devtools::install_github("LudvigOlsen/insertImage")

Use

  • Install package.
  • Add key command by going to:
    • Tools > Addins > Browse Addins > Keyboard Shortcuts.
    • Find Insert Image and press its field under Shortcut.
    • Press desired key command.
    • Press Apply.
    • Press Execute.
  • Press chosen key command inside R Markdown document.

insertimage's People

Contributors

ludvigolsen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.