GithubHelp home page GithubHelp logo

codeanalyser's Introduction

codeAnalyseR - 0.0.0.9003


A package to analyse your custom R scripts.

Installation

renv::install("dschaykib/codeAnalyseR")

Motivation for codeAnalyseR

Have you ever got a project from a colleague or from a client and had no idea what's inside or how it works?

Well, I been there a few times... and to make my life easier, I want a functionality, that gives me an overview of an existing project. I want to know:

  • how the functions are connected?
  • what packages are used?
  • how much of the code might be duplicated?
  • ...

For this purpose I wrote and collected some functions and put them all in this package.

I hope you might find some of these helpful. If you have similar functions or check for more things, let me know!

How to use codeAnalyseR

At the moment there are the following functions to use:

get_network()

This function plots user defined functions and shows how they are connected.

plot_renv_dep()

Plots the dependencies stated in a renv.lock file and creates a sankey plot. In Addition the used licenses are displayed by color.

findredundance()

This functions checks the provided code for duplicated rows and states how many percent of the code could be reduced.

chunk_size found max_dups total_dups      rest
        10     1        2          2 0.9805637
         7     1        3          3 0.9601555
         4     1        2          2 0.9533528
         3     3        2          6 0.9358601
         2     9        5         26 0.8853256

codeanalyser's People

Contributors

dschaykib avatar sw-jakobgepp avatar

Watchers

 avatar

codeanalyser's Issues

minor udpates

  • dir: update docu if vector or string, clarify absolute vs relative path
  • exclude renv files info
  • dependencies igraph kick it

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.